Package com.secoo.coobox.library.support

Types

Finder
Link copied to clipboard
typealias Finder<T> = T.(Int) -> View?
Lazy
Link copied to clipboard
private class Lazy<T, V>(initializer: (T, KProperty<*>) -> V) : ReadOnlyProperty<T, V>

Functions

bindOptionalView
Link copied to clipboard
fun <V : View> Activity.bindOptionalView(id: Int): ReadOnlyProperty<Activity, V?>
fun <V : View> Dialog.bindOptionalView(id: Int): ReadOnlyProperty<Dialog, V?>
fun <V : View> DialogFragment.bindOptionalView(id: Int): ReadOnlyProperty<DialogFragment, V?>
fun <V : View> Fragment.bindOptionalView(id: Int): ReadOnlyProperty<Fragment, V?>
fun <V : View> View.bindOptionalView(id: Int): ReadOnlyProperty<View, V?>
fun <V : View> DialogFragment.bindOptionalView(id: Int): ReadOnlyProperty<DialogFragment, V?>
fun <V : View> Fragment.bindOptionalView(id: Int): ReadOnlyProperty<Fragment, V?>
fun <V : View> RecyclerView.ViewHolder.bindOptionalView(id: Int): ReadOnlyProperty<RecyclerView.ViewHolder, V?>
bindOptionalViews
Link copied to clipboard
fun <V : View> Activity.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<Activity, List<V>>
fun <V : View> Dialog.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<Dialog, List<V>>
fun <V : View> DialogFragment.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<DialogFragment, List<V>>
fun <V : View> Fragment.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<Fragment, List<V>>
fun <V : View> View.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<View, List<V>>
fun <V : View> DialogFragment.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<DialogFragment, List<V>>
fun <V : View> Fragment.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<Fragment, List<V>>
fun <V : View> RecyclerView.ViewHolder.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<RecyclerView.ViewHolder, List<V>>
bindView
Link copied to clipboard
fun <V : View> Activity.bindView(id: Int): ReadOnlyProperty<Activity, V>
fun <V : View> Dialog.bindView(id: Int): ReadOnlyProperty<Dialog, V>
fun <V : View> DialogFragment.bindView(id: Int): ReadOnlyProperty<DialogFragment, V>
fun <V : View> Fragment.bindView(id: Int): ReadOnlyProperty<Fragment, V>
fun <V : View> View.bindView(id: Int): ReadOnlyProperty<View, V>
fun <V : View> DialogFragment.bindView(id: Int): ReadOnlyProperty<DialogFragment, V>
fun <V : View> Fragment.bindView(id: Int): ReadOnlyProperty<Fragment, V>
fun <V : View> RecyclerView.ViewHolder.bindView(id: Int): ReadOnlyProperty<RecyclerView.ViewHolder, V>
bindViews
Link copied to clipboard
fun <V : View> Activity.bindViews(vararg ids: Int): ReadOnlyProperty<Activity, List<V>>
fun <V : View> Dialog.bindViews(vararg ids: Int): ReadOnlyProperty<Dialog, List<V>>
fun <V : View> DialogFragment.bindViews(vararg ids: Int): ReadOnlyProperty<DialogFragment, List<V>>
fun <V : View> Fragment.bindViews(vararg ids: Int): ReadOnlyProperty<Fragment, List<V>>
fun <V : View> View.bindViews(vararg ids: Int): ReadOnlyProperty<View, List<V>>
fun <V : View> DialogFragment.bindViews(vararg ids: Int): ReadOnlyProperty<DialogFragment, List<V>>
fun <V : View> Fragment.bindViews(vararg ids: Int): ReadOnlyProperty<Fragment, List<V>>
fun <V : View> RecyclerView.ViewHolder.bindViews(vararg ids: Int): ReadOnlyProperty<RecyclerView.ViewHolder, List<V>>
optional
Link copied to clipboard
private fun <T, V : View> optional(id: Int, finder: Finder<T>): Lazy<T, V?>
private fun <T, V : View> optional(ids: IntArray, finder: Finder<T>): Lazy<T, List<V>>
required
Link copied to clipboard
private fun <T, V : View> required(id: Int, finder: Finder<T>): Lazy<T, V>
private fun <T, V : View> required(ids: IntArray, finder: Finder<T>): Lazy<T, List<V>>
viewNotFound
Link copied to clipboard
private fun viewNotFound(id: Int, desc: KProperty<*>): Nothing

Properties

viewFinder
Link copied to clipboard
private val View.viewFinder: Finder<View>
viewFinder
Link copied to clipboard
private val Activity.viewFinder: Finder<Activity>
viewFinder
Link copied to clipboard
private val Dialog.viewFinder: Finder<Dialog>
viewFinder
Link copied to clipboard
private val DialogFragment.viewFinder: Finder<DialogFragment>
viewFinder
Link copied to clipboard
private val DialogFragment.viewFinder: Finder<DialogFragment>
viewFinder
Link copied to clipboard
private val Fragment.viewFinder: Finder<Fragment>
viewFinder
Link copied to clipboard
private val Fragment.viewFinder: Finder<Fragment>
viewFinder
Link copied to clipboard
private val RecyclerView.ViewHolder.viewFinder: Finder<RecyclerView.ViewHolder>