<div class='type'>Composable Function</div>


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



<h2 id="interceptplatformtextinput-interceptor-content">InterceptPlatformTextInput</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalComposeUiApi
@Composable
fun InterceptPlatformTextInput(
    interceptor: PlatformTextInputInterceptor,
    content: @Composable () -> Unit,
)
```


Intercept all calls to `PlatformTextInputSession.startInputMethod` from below where this
composition local is provided with the given `PlatformTextInputInterceptor`.

If a different interceptor instance is passed between compositions while a text input session is
active, the upstream session will be torn down and restarted with the new interceptor. The
downstream session (i.e. the call to `PlatformTextInputSession.startInputMethod`) will _not_ be
cancelled and the request will be re-used to pass to the new interceptor.