MoEngageRecommendationConfig
@objc
public class MoEngageRecommendationConfig : NSObject
Class to configure Recommendations.
-
Duration for which recommended items are served from the local cache before the SDK fetches them again. Unit: seconds.
The SDK uses whichever is larger — this value or the duration configured on the dashboard.
Important
24 hours (86400 seconds) is the shortest supported duration. A smaller value is discarded when the SDK reads this config and 86400 is used instead; the SDK logs a warning naming both durations when that happens. Note the discard occurs at SDK initialisation, not here, so this property still reports whatever was assigned to it.Declaration
Swift
@objc public var recommendedItemsCacheDuration: Int -
Init method for MoEngageRecommendationConfig
Declaration
Swift
@objc public init(recommendedItemsCacheDuration: Int)Parameters
recommendedItemsCacheDurationRecommended items’ local cache duration, in seconds.