Google is committed to advancing racial equity for Black communities. See how.

SoftwareKeyboardController

class SoftwareKeyboardController
kotlin.Any
   ↳ androidx.ui.text.SoftwareKeyboardController

Provide software keyboard control.

Summary

Public constructors
<init>(textInputService: TextInputService, token: InputSessionToken)

Provide software keyboard control.

Public methods
Unit

Hide software keyboard

Unit

Notify to IME about the currently focused rectangle.

Unit

Show software keyboard

Public constructors

<init>

SoftwareKeyboardController(
    textInputService: TextInputService,
    token: InputSessionToken)

Provide software keyboard control.

Public methods

hideSoftwareKeyboard

fun hideSoftwareKeyboard(): Unit

Hide software keyboard

Do nothing if bound text field loses input session.

notifyFocusedRect

fun notifyFocusedRect(rect: Rect): Unit

Notify to IME about the currently focused rectangle.

Do nothing if bound text field loses input session.

Parameters
rect: Rect focused rectangle in the root view coordinate.

showSoftwareKeyboard

fun showSoftwareKeyboard(): Unit

Show software keyboard

There is no guarantee nor callback of the result of this API. Do nothing if bound text field loses input session.