Class ZoomableStateKt
-
- All Implemented Interfaces:
public final class ZoomableStateKt
-
-
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. -
-
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.minScalemaxScale
- the maximum scale value for ZoomableState.maxScaleinitialTranslateX
- initial horizontal offsetinitialTranslateY
- initial vertical offset
-
-
-
-