com.urbanairship.iam.assets.CachePolicyDelegate |
Delegate used to determine the caching for a InAppMessage
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
shouldCacheOnSchedule(String scheduleId, InAppMessage message)
Called to determine if the assets for a message should be cached on schedule.
| ||||||||||
abstract boolean |
shouldPersistCacheAfterDisplay(String scheduleId, InAppMessage message)
Called to determine if the cache should be cleared for an in-app message after the
message is finished displaying.
|
Called to determine if the assets for a message should be cached on schedule.
scheduleId | The schedule Id. |
---|---|
message | The in-app message. |
true
to cache, otherwise false
.
Called to determine if the cache should be cleared for an in-app message after the message is finished displaying. The cache is always cleared if the schedule is cancelled, has reached its executing limit, or expires.
scheduleId | The schedule Id. |
---|---|
message | The in-app message. |
true
to clear the cache, otherwise false
.