Function

indexOfFirstPressed

indexOfFirstPressed

Source set: Android
public fun PointerButtons.indexOfFirstPressed(): Int

indexOfFirstPressed

Source set: Common
public fun PointerButtons.indexOfFirstPressed(): Int

Returns the index of first button pressed as used in isPressed or -1 if no button is pressed.

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: