RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / selector

selector

@JvmOverloads fun <T> Context.selector(items: List<T>, callback: (DialogInterface, item: T, Int) -> Unit, title: String = "", cancelable: Boolean = true): Builder

Display SelectorDialog instantly

Parameters

title - optional, title

items - list of display item, working with generic. it will display item.toString()

cancelable - able to cancel

callback - callback of click ok button

@JvmOverloads fun <T> Context.selector(items: List<T>, callback: F3<DialogInterface, T, Int>?, title: String = "", cancelable: Boolean = true): Builder

Display SelectorDialog instantly for SAM Conversion

Parameters

title - optional, title

items - list of display item, working with generic. it will display item.toString()

cancelable - able to cancel

callback - callback of click ok button