Class ZoomableStateKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ZoomableState rememberZoomableState(Float minScale, Float maxScale, Float initialTranslateX, Float initialTranslateY) Create a ZoomableState that is remembered across compositions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • rememberZoomableState

         final static ZoomableState rememberZoomableState(Float minScale, Float maxScale, Float initialTranslateX, Float initialTranslateY)

        Create a ZoomableState that is remembered across compositions.

        Changes to the provided values for minScale and maxScale will not result in the state being recreated or changed in any way if it has already been created.

        Parameters:
        minScale - the minimum scale value for ZoomableState.minScale
        maxScale - the maximum scale value for ZoomableState.maxScale
        initialTranslateX - initial horizontal offset
        initialTranslateY - initial vertical offset