# PlatformTextInputSessionScope

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/platform/PlatformTextInputModifierNode.kt+class:androidx.compose.ui.platform.PlatformTextInputSessionScope) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0) Common/AllAndroid/JVM
- Cmn

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

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/PlatformTextInputSession` that is also a `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html`. This type should *only* be used as the receiver of the function passed to `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/package-summary#(androidx.compose.ui.platform.PlatformTextInputModifierNode).establishTextInputSession(kotlin.coroutines.SuspendFunction1)`. 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 `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/PlatformTextInputSession` receiver. If they need a `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html` they should call the `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/index.html` function.

## Summary

| ### Inherited functions |
|---|
| From [androidx.compose.ui.platform.PlatformTextInputSession](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/PlatformTextInputSession) |---|---|---| | `suspend https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-nothing/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/PlatformTextInputSession#startInputMethod(androidx.compose.ui.platform.PlatformTextInputMethodRequest)(request: https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/PlatformTextInputMethodRequest)` Starts the text input session and suspends until it is closed. | Cmn | |

| ### Inherited properties |
|---|
| From [kotlinx.coroutines.CoroutineScope](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/index.html` | `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/coroutine-context.html` | Cmn | |