-
public final class ZoomStateKt
-
-
Method Summary
Modifier and Type Method Description final static <ERROR CLASS>rememberZoomState(@FloatRange(from = 1.0.toDouble()) Float maxScale, Size contentSize, DecayAnimationSpec<Float> velocityDecay)Creates a ZoomState that is remembered across compositions. -
-
Method Detail
-
rememberZoomState
@Composable() final static <ERROR CLASS> rememberZoomState(@FloatRange(from = 1.0.toDouble()) Float maxScale, Size contentSize, DecayAnimationSpec<Float> velocityDecay)
Creates a ZoomState that is remembered across compositions.
- Parameters:
maxScale- The maximum scale of the content.contentSize- Size of content (i.e.velocityDecay- The decay animation spec for fling behaviour.
-
-
-
-