Package 

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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.