🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

PlatformTextInputSession

Source set: Android
public interface PlatformTextInputSession

Properties

view

Source set: Android
public val view: View

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

Functions

startInputMethod

Source set: Android
public actual suspend fun startInputMethod(request: PlatformTextInputMethodRequest): Nothing
Source set: Common
public interface PlatformTextInputSession

Receiver type for establishTextInputSession.

Functions

startInputMethod

Source set: Common
public 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

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