public interface

PrepareAssetsDelegate

com.urbanairship.iam.assets.PrepareAssetsDelegate
Known Indirect Subclasses

Class Overview

Listener used by AssetManager to populate assets for in-app messages.

Summary

Public Methods
abstract int onPrepare(String scheduleId, InAppMessage message, Assets assets)
Called to prepare assets for the in-app message before the message is displayed.
abstract void onSchedule(String scheduleId, InAppMessage message, Assets assets)
Called to prepare assets for the in-app message when the message is scheduled.

Public Methods

public abstract int onPrepare (String scheduleId, InAppMessage message, Assets assets)

Called to prepare assets for the in-app message before the message is displayed.

Parameters
scheduleId The scheduleId.
message The message. This might be different then schedule's message if the message was extended.
assets The assets.
Returns
  • The prepare result.

public abstract void onSchedule (String scheduleId, InAppMessage message, Assets assets)

Called to prepare assets for the in-app message when the message is scheduled. If any assets fail to download, onPrepare(String, InAppMessage, Assets) will still be called before the message is displayed.

Parameters
scheduleId The scheduleId.
message The message. This might be different then schedule's message if the message was extended.
assets The assets.