Package-level declarations

Types

Link copied to clipboard
typealias OnZoom = (centroid: Offset, zoomChange: Float) -> Unit

Represents a function block that handles the pinch-to-zoom gesture. centroid is the average position of the touch points. zoomChange is the factor by which the content scale should be multiplied.

Functions

Link copied to clipboard
fun Modifier.zoomable(onZoom: OnZoom, enabled: Boolean = true): Modifier

Handles the pinch-to-zoom gesture.