public abstract class

MediaDisplayAdapter

extends ForegroundDisplayAdapter
java.lang.Object
   ↳ com.urbanairship.iam.ForegroundDisplayAdapter
     ↳ com.urbanairship.iam.MediaDisplayAdapter
Known Direct Subclasses

Class Overview

Display adapter that handles caching an in-app message.

Summary

[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

Protected Constructors

protected MediaDisplayAdapter (InAppMessage message, MediaInfo mediaInfo)

Default constructor.

Parameters
message The in-app message.
mediaInfo The media info.

Public Methods

public Assets getAssets ()

public boolean isReady (Context context)

Called before displaying but after the message is prepared.

Parameters
context The application context.
Returns
  • true if the message is ready to be displayed, otherwise false.

public void onFinish (Context context)

public int onPrepare (Context context, Assets assets)

Protected Methods

protected InAppMessage getMessage ()

Gets the in-app message.

Returns
  • The in-app message.