java.lang.Object | ||
↳ | com.urbanairship.iam.ForegroundDisplayAdapter | |
↳ | com.urbanairship.iam.MediaDisplayAdapter |
Known Direct Subclasses |
Display adapter that handles caching an in-app message.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.urbanairship.iam.InAppMessageAdapter
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaDisplayAdapter(InAppMessage message, MediaInfo mediaInfo)
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assets | getAssets() | ||||||||||
boolean |
isReady(Context context)
Called before displaying but after the message is prepared.
| ||||||||||
void | onFinish(Context context) | ||||||||||
int | onPrepare(Context context, Assets assets) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InAppMessage |
getMessage()
Gets the in-app message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.iam.ForegroundDisplayAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.iam.InAppMessageAdapter
|
Default constructor.
message | The in-app message. |
---|---|
mediaInfo | The media info. |
Called before displaying but after the message is prepared.
context | The application context. |
---|
true
if the message is ready to be displayed, otherwise false
.