TouchExplorationStateProvider

Interface

Android
public fun interface TouchExplorationStateProvider

A functional interface for providing the state of touch exploration services. It is strongly discouraged to make logic conditional based on state of accessibility services. Please consult with accessibility experts before making such change.

Functions

@Composable public fun touchExplorationState(): State<Boolean>

Returns the touch exploration service state wrapped in a State to allow composables to attach the state to itself. This will allow composables to react to change in service state, if required.