rememberZoomableState

fun rememberZoomableState(zoomSpec: ZoomSpec = ZoomSpec(), autoApplyTransformations: Boolean = true, hardwareShortcutsSpec: HardwareShortcutsSpec = HardwareShortcutsSpec()): ZoomableState

Create a ZoomableState that can be used with Modifier.zoomable.

Parameters

autoApplyTransformations

Determines whether the resulting scale and translation of pan and zoom gestures should be automatically applied by Modifier.zoomable to its content. This can be disabled if your content prefers applying the transformations in a bespoke manner.

hardwareShortcutsSpec

Spec used for handling keyboard and mouse shortcuts, or HardwareShortcutsSpec.Disabled for disabling them.