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

PlatformTextInputPlugin

@ExperimentalTextApi
public interface PlatformTextInputPlugin<T extends PlatformTextInputAdapter>


See kdoc on actual interfaces.

Summary

Public methods

abstract @NonNull T
createAdapter(
    @NonNull PlatformTextInput platformTextInput,
    @NonNull View view
)

Creates a new instance of a PlatformTextInputAdapter hosted by view.

Public methods

createAdapter

abstract @NonNullcreateAdapter(
    @NonNull PlatformTextInput platformTextInput,
    @NonNull View view
)

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.