Function

scale

Sends a scale event with the given scaleFactor.

trackpadInputScale

@Sampled
fun trackpadInputScale() {
    composeTestRule.onNodeWithTag("transformable").performTrackpadInput {
        // Performs a scale with a factor of 0.9f, which corresponds to a "zoom out" gesture.
        scale(0.9f)
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: