TouchExplorationStateProvider


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.

Summary

Public functions

State<Boolean>

Returns the touch exploration service state wrapped in a State to allow composables to attach the state to itself.

Public functions

touchExplorationState

Added in 1.2.0
@Composable
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.