Register now for Android Dev Summit 2019!

AdapterMulti

open class AdapterMulti : RecyclerView.Adapter<LeanbackListPreferenceDialogFragment.ViewHolder!>, LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<androidx.leanback.preference.LeanbackListPreferenceDialogFragment.ViewHolder>
   ↳ androidx.leanback.preference.LeanbackListPreferenceDialogFragment.AdapterMulti

Adapter for multiple choices.

Summary

Public constructors

<init>(entries: Array<CharSequence!>!, entryValues: Array<CharSequence!>!, initialSelections: MutableSet<String!>!)

Public methods

open Int

open Unit

open LeanbackListPreferenceDialogFragment.ViewHolder
onCreateViewHolder(parent: ViewGroup, viewType: Int)

open Unit

Inherited functions

Public constructors

<init>

AdapterMulti(entries: Array<CharSequence!>!, entryValues: Array<CharSequence!>!, initialSelections: MutableSet<String!>!)

Public methods

getItemCount

open fun getItemCount(): Int

onBindViewHolder

open fun onBindViewHolder(holder: LeanbackListPreferenceDialogFragment.ViewHolder, position: Int): Unit

onCreateViewHolder

open fun onCreateViewHolder(parent: ViewGroup, viewType: Int): LeanbackListPreferenceDialogFragment.ViewHolder

onItemClick

open fun onItemClick(viewHolder: LeanbackListPreferenceDialogFragment.ViewHolder!): Unit