rememberZoomableState

fun rememberZoomableState(minScale: Float = 1.0f, maxScale: Float = Float.MAX_VALUE, initialTranslateX: Float = 0.0f, initialTranslateY: Float = 0.0f): ZoomableState

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