---
title: "PlatformTextInputMethodTestOverride"
description: "Installs a custom [PlatformTextInputSession] implementation to run when
[PlatformTextInputSession.startInputMethod] is called by text editors inside [content]."
type: "composable"
---

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


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

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


> **Deprecated** Use InterceptPlatformTextInput instead

```kotlin
@ExperimentalTestApi
@Composable
fun PlatformTextInputMethodTestOverride(
    sessionHandler: PlatformTextInputSession,
    content: @Composable () -> Unit,
)
```


Installs a custom `PlatformTextInputSession` implementation to run when
`PlatformTextInputSession.startInputMethod` is called by text editors inside `content`.

#### Parameters

| | |
| --- | --- |
| sessionHandler | The `PlatformTextInputSession` to use to handle input method requests. This object does _not_ need to worry about synchronizing calls to `PlatformTextInputSession.startInputMethod` – this composable will handle the session management the same way as in production. |
| content | The composable content for which to override the input method handler. |





