toggle menu
Airship Android SDK
main
switch theme
search in API
urbanairship-message-center
/
com.urbanairship.messagecenter
/
MessageViewAdapter
Message
View
Adapter
abstract
class
MessageViewAdapter
A generic base adapter that binds items to views using the ViewBinder interface.
Members
Constructors
Message
View
Adapter
Link copied to clipboard
constructor
(
context
:
Context
,
layout
:
Int
)
Creates a ViewBinder
Functions
get
Count
Link copied to clipboard
open
fun
getCount
(
)
:
Int
get
Item
Link copied to clipboard
open
fun
getItem
(
position
:
Int
)
:
Any
get
Item
Id
Link copied to clipboard
open
fun
getItemId
(
position
:
Int
)
:
Long
get
View
Link copied to clipboard
open
fun
getView
(
position
:
Int
,
convertView
:
View
,
parent
:
ViewGroup
)
:
View
has
Stable
Ids
Link copied to clipboard
open
fun
hasStableIds
(
)
:
Boolean
set
Link copied to clipboard
open
fun
set
(
collection
:
Collection
<
Message
>
)
Sets the current items in the adapter to the collection.