Added in API level 1

Tokenizer


interface Tokenizer
android.widget.MultiAutoCompleteTextView.Tokenizer

Summary

Public methods
abstract Int
findTokenEnd(text: CharSequence!, cursor: Int)

Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.

abstract Int
findTokenStart(text: CharSequence!, cursor: Int)

Returns the start of the token that ends at offset cursor within text.

abstract CharSequence!

Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).

Public methods

findTokenEnd

Added in API level 1
abstract fun findTokenEnd(
    text: CharSequence!,
    cursor: Int
): Int

Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.

findTokenStart

Added in API level 1
abstract fun findTokenStart(
    text: CharSequence!,
    cursor: Int
): Int

Returns the start of the token that ends at offset cursor within text.

terminateToken

Added in API level 1
abstract fun terminateToken(text: CharSequence!): CharSequence!

Returns text, modified, if necessary, to ensure that it ends with a token terminator (for example a space or comma).