---
title: "TouchExplorationStateProvider"
description: "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."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>



```kotlin
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

```kotlin
@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.



