Composable Function

currentProfileSupportsTouchModifiers

Whether the current creation androidx.compose.remote.creation.profile.Profile supports the touch down, up and cancel modifiers (onTouchDown, onTouchUp, onTouchCancel), for example to drive a press animation.

currentProfileSupportsTouchModifiers

Source set: Android
@Composable
public fun currentProfileSupportsTouchModifiers(): Boolean

Whether the current creation androidx.compose.remote.creation.profile.Profile supports the touch down, up and cancel modifiers (onTouchDown, onTouchUp, onTouchCancel), for example to drive a press animation.

Some profiles, such as androidx.glance.wear.GlanceWearProfiles.wearWidgets, do not include those touch operations.

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: