java.lang.Object | |
↳ | com.urbanairship.iam.assets.AssetManager |
Manages assets for in-app messages.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | AssetManager.PrepareResult |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PREPARE_RESULT_CANCEL | Indicates that the prepare step failed and the schedule should be canceled. | |||||||||
int | PREPARE_RESULT_OK | Indicates a successful result. | |||||||||
int | PREPARE_RESULT_RETRY | Indicates that the the prepare step should be retried. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AssetManager(Context context)
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assets |
getAssets(String scheduleId)
Gets the assets for a schedule.
| ||||||||||
void |
setCachePolicyDelegate(CachePolicyDelegate cachePolicyDelegate)
Sets the cache policy delegate.
| ||||||||||
void |
setPrepareAssetDelegate(PrepareAssetsDelegate assetsDelegate)
Sets the prepare assets delegate.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Indicates that the prepare step failed and the schedule should be canceled.
Indicates a successful result.
Indicates that the the prepare step should be retried.
Default constructor. Applications should not create their own, instead use the asset manager
from getAssetManager()
context | The application context. |
---|
Gets the assets for a schedule.
scheduleId | The schedule ID. |
---|
Sets the cache policy delegate.
cachePolicyDelegate | The cache policy delegate. |
---|
Sets the prepare assets delegate. The delegate is used to populate an Assets
instance
for a schedule.
To preserve Airship default behavior, extend AirshipPrepareAssetsDelegate
and call through to the super's method.
assetsDelegate | The asset delegate. |
---|