speller

abstract fun speller(title: String, initial: String, maxLen: Int, onDone: Listener<UiAction>): Subscription(source)

EXPERIMENTAL. Opens the HMI speller (an on-screen keyboard) over this plugin's open page, starting from initial; maxLen is 1..MAX_SPELLER, else IllegalArgumentException. A null listener gets no answer. The speller has no OK key: BACK leaves the speller and is "done", so onDone gets text = the typed text. A page may offer its own Save row.

Exactly once: a call with a listener is answered exactly once on the plugin's executor, unless cancel withdraws it first. A call made while the plugin is stopping comes back cancelled and is never answered. text is the typed text (at most maxLen characters) when the user leaves a speller they saw: BACK, or another screen (a stock one) taking over. It is null when the speller never showed (inert without UI_INPUTS, not over this plugin's page, another confirm or speller already up, or its screen could not be shown), or when it was dismissed because its page closed, including when this plugin itself opens another page or removes the page under it while the speller is up. Needs api 5.

Since

api 5