# PermissionItemAdapter

class PermissionItemAdapter(context: Context, permissionList: List<PermissionModel>) : RecyclerView.Adapter<PermissionItemAdapter.ItemViewHolder>
Content copied to clipboard

Adapter for the RecyclerView in PermissionActivity. Displays PermissionList data object.

## Constructors

PermissionItemAdapter
Link copied to clipboard
fun PermissionItemAdapter(context: Context, permissionList: List<PermissionModel>)
Content copied to clipboard

## Types

ItemViewHolder
Link copied to clipboard
class ItemViewHolder(view: View) : RecyclerView.ViewHolder
Content copied to clipboard

Provide a reference to the views for each data item.

## Properties

context
Link copied to clipboard
private val context: Context
Content copied to clipboard
permissionList
Link copied to clipboard
private val permissionList: List<PermissionModel>
Content copied to clipboard

## Inherited properties

mHasStableIds
Link copied to clipboard
private val mHasStableIds: Boolean
Content copied to clipboard
mObservable
Link copied to clipboard
private val mObservable: RecyclerView.AdapterDataObservable
Content copied to clipboard

## Functions

getItemCount
Link copied to clipboard
open override fun getItemCount(): Int
Content copied to clipboard

Return a size of the permissionList.

onBindViewHolder
Link copied to clipboard
open override fun onBindViewHolder(holder: PermissionItemAdapter.ItemViewHolder, position: Int)
Content copied to clipboard

Replace the contents of a view. When user click in permission type button, the permission type activity starts.

onCreateViewHolder
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): PermissionItemAdapter.ItemViewHolder
Content copied to clipboard

Create a new views.

## Inherited functions

bindViewHolder
Link copied to clipboard
fun bindViewHolder(@NonNull p0: PermissionItemAdapter.ItemViewHolder, p1: Int)
Content copied to clipboard
createViewHolder
Link copied to clipboard
@NonNull
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): PermissionItemAdapter.ItemViewHolder
Content copied to clipboard
getItemId
Link copied to clipboard
open fun getItemId(p0: Int): Long
Content copied to clipboard
getItemViewType
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
Content copied to clipboard
hasObservers
Link copied to clipboard
fun hasObservers(): Boolean
Content copied to clipboard
hasStableIds
Link copied to clipboard
fun hasStableIds(): Boolean
Content copied to clipboard
notifyDataSetChanged
Link copied to clipboard
fun notifyDataSetChanged()
Content copied to clipboard
notifyItemChanged
Link copied to clipboard
fun notifyItemChanged(p0: Int)
Content copied to clipboard
fun notifyItemChanged(p0: Int, @Nullable p1: Any?)
Content copied to clipboard
notifyItemInserted
Link copied to clipboard
fun notifyItemInserted(p0: Int)
Content copied to clipboard
notifyItemMoved
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Content copied to clipboard
notifyItemRangeChanged
Link copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int)
Content copied to clipboard
fun notifyItemRangeChanged(p0: Int, p1: Int, @Nullable p2: Any?)
Content copied to clipboard
notifyItemRangeInserted
Link copied to clipboard
fun notifyItemRangeInserted(p0: Int, p1: Int)
Content copied to clipboard
notifyItemRangeRemoved
Link copied to clipboard
fun notifyItemRangeRemoved(p0: Int, p1: Int)
Content copied to clipboard
notifyItemRemoved
Link copied to clipboard
fun notifyItemRemoved(p0: Int)
Content copied to clipboard
onAttachedToRecyclerView
Link copied to clipboard
open fun onAttachedToRecyclerView(@NonNull p0: RecyclerView)
Content copied to clipboard
onBindViewHolder
Link copied to clipboard
open fun onBindViewHolder(@NonNull p0: PermissionItemAdapter.ItemViewHolder, p1: Int, @NonNull p2: MutableList<Any>)
Content copied to clipboard
onDetachedFromRecyclerView
Link copied to clipboard
open fun onDetachedFromRecyclerView(@NonNull p0: RecyclerView)
Content copied to clipboard
onFailedToRecycleView
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: PermissionItemAdapter.ItemViewHolder): Boolean
Content copied to clipboard
onViewAttachedToWindow
Link copied to clipboard
open fun onViewAttachedToWindow(@NonNull p0: PermissionItemAdapter.ItemViewHolder)
Content copied to clipboard
onViewDetachedFromWindow
Link copied to clipboard
open fun onViewDetachedFromWindow(@NonNull p0: PermissionItemAdapter.ItemViewHolder)
Content copied to clipboard
onViewRecycled
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: PermissionItemAdapter.ItemViewHolder)
Content copied to clipboard
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
setHasStableIds
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Content copied to clipboard
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard