UAInAppMessageCachePolicyDelegate
Objective-C
@protocol UAInAppMessageCachePolicyDelegate <NSObject>
Swift
protocol InAppMessageCachePolicyDelegate : NSObjectProtocol
Protocol for customizing in-app message asset cache policy.
-
Return cache policy for caching assets on schedule
Note
If unimplemented, the message’s assets will not be cached when the message is scheduled.
Declaration
Objective-C
- (BOOL)shouldCacheOnSchedule:(nonnull UAInAppMessage *)message;
Swift
func shouldCache(onSchedule message: InAppMessage) -> Bool
Parameters
message
The message for which the assets will or won’t be cached
Return Value
YES
requests the Asset Manager to cache the message’s assets when the message is scheduled. -
Return cache policy for retaining cached assets after display
Note
If unimplemented, the message’s assets will not be persisted when the message has finished displaying.
Declaration
Objective-C
- (BOOL)shouldPersistCacheAfterDisplay:(nonnull UAInAppMessage *)message;
Swift
func shouldPersistCache(afterDisplay message: InAppMessage) -> Bool
Parameters
message
The message for which the assets will or won’t be cached
Return Value
YES
requests the Asset Manager to persist the caching of the message’s assets when the message has finished displaying.