Binding

class Binding(editText: EditText, config: Config)

Wanakana binding to an EditText.

Constructors

Binding
Link copied to clipboard
fun Binding(editText: EditText, config: Config)

Functions

addListener
Link copied to clipboard
fun addListener(initialize: Boolean = false, listener: WanakanaAndroid.Listener)
Adds a listener to be notified of text changes.
clear
Link copied to clipboard
fun clear()
Clears the binding, the text will not be converted automagically anymore.
clearListeners
Link copied to clipboard
fun clearListeners()
Removes all Listeners.
removeListener
Link copied to clipboard
fun removeListener(listener: WanakanaAndroid.Listener)
Removes a previously added listener, it won't be notified of text changes anymore.

Properties

config
Link copied to clipboard
var config: Config
The Config of toKanaIme, the conversion applied to the text.