StickerCollectionAdapter
class StickerCollectionAdapter
Fields
Name | Description |
---|---|
val programId: String
|
Constructors
<init>
constructor(stickerPacks: List<StickerPack>, programId: String, emptyRecentTextColor: Int, onClickCallback: (Sticker)->Unit)
Parameters
Name | Description |
---|---|
stickerPacks: List<StickerPack>
|
|
programId: String
|
|
emptyRecentTextColor: Int
|
|
onClickCallback: (Sticker)->Unit
|
Methods
onCreateViewHolder
fun onCreateViewHolder(viewGroup: ViewGroup, index: Int): StickerCollectionViewHolder
Parameters
Name | Description |
---|---|
viewGroup: ViewGroup
|
|
index: Int
|
ReturnValue
Name | Description |
---|---|
StickerCollectionViewHolder
|
getItemCount
fun getItemCount(): Int
ReturnValue
Name | Description |
---|---|
Int
|
onBindViewHolder
fun onBindViewHolder(viewHolder: StickerCollectionViewHolder, index: Int)
Parameters
Name | Description |
---|---|
viewHolder: StickerCollectionViewHolder
|
|
index: Int
|
ReturnValue
Name | Description |
---|---|
Unit
|
CompanionObject
StickerCollectionAdapter
class StickerCollectionAdapter
Fields
Name | Description |
---|---|
const RECENT_STICKERS_POSITION: Int
|