---
title: "PlatformTextInputSessionScope"
description: "A [PlatformTextInputSession] that is also a [CoroutineScope]. This type should _only_ be used as
the receiver of the function passed to [establishTextInputSession]. Other extension functions
that need to get the scope should _not_ use this as their receiver type, instead they should be
suspend functions with a [PlatformTextInputSession] receiver. If they need a [CoroutineScope]
they should call the [kotlinx.coroutines.coroutineScope] function."
type: "interface"
---

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


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

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



```kotlin
interface PlatformTextInputSessionScope : PlatformTextInputSession, CoroutineScope
```


A `PlatformTextInputSession` that is also a `CoroutineScope`. This type should _only_ be used as
the receiver of the function passed to `establishTextInputSession`. Other extension functions
that need to get the scope should _not_ use this as their receiver type, instead they should be
suspend functions with a `PlatformTextInputSession` receiver. If they need a `CoroutineScope`
they should call the `kotlinx.coroutines.coroutineScope` function.



