{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PlatformTextInputPlugin


See kdoc on actual interfaces.

Summary

Public functions

T
createAdapter(platformTextInput: PlatformTextInput, view: View)

Creates a new instance of a PlatformTextInputAdapter hosted by view.

android

Public functions

createAdapter

fun createAdapter(platformTextInput: PlatformTextInput, view: View): T

Creates a new instance of a PlatformTextInputAdapter hosted by view.

The PlatformTextInputAdapter implementation should call PlatformTextInput.requestInputFocus when it's ready to start processing text input in order to become the active delegate for the platform's IME APIs, and PlatformTextInput.releaseInputFocus to notify the platform that it is no longer processing input.