---
title: "PlatformTextInputSession"
description: "Receiver type for [establishTextInputSession]."
type: "interface"
---

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


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

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



```kotlin
expect interface PlatformTextInputSession
```


Receiver type for `establishTextInputSession`.


## Functions

```kotlin
suspend fun startInputMethod(request: PlatformTextInputMethodRequest): Nothing
```


Starts the text input session and suspends until it is closed.

On platforms that support software keyboards, calling this method will show the keyboard and
attempt to keep it visible until the last session is closed.

Calling this method multiple times, within the same `establishTextInputSession` block or from
different `establishTextInputSession`s, will restart the session each time.

#### Parameters

| | |
| --- | --- |
| request | The platform-specific `PlatformTextInputMethodRequest` that will be used to initiate the session. |




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



```kotlin
actual interface PlatformTextInputSession
```

## Properties

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


```kotlin
val view: View
```


The `View` this input session is bound to. This view should be used to obtain and interact
with the `InputMethodManager`.



## Functions

```kotlin
actual suspend fun startInputMethod(request: PlatformTextInputMethodRequest): Nothing
```


