PlatformTextInputSession

Interface

Common
expect interface PlatformTextInputSession

Receiver type for establishTextInputSession.

Functions

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 establishTextInputSessions, will restart the session each time.

Parameters

requestThe platform-specific PlatformTextInputMethodRequest that will be used to initiate the session.
Android
actual interface PlatformTextInputSession

Properties

Android
val view: View

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

Functions

actual suspend fun startInputMethod(request: PlatformTextInputMethodRequest): Nothing