MoEngageInAppDeliveryControl
@objcMembers
public class MoEngageInAppDeliveryControl : NSObject, NSCoding, Codable
A class that manages delivery control settings for in-app campaigns.
This class handles various aspects of campaign delivery including priority levels,
persistence settings, and frequency capping metadata. It conforms to NSCoding
and Codable protocols for data persistence and serialization.
-
Priority level for campaign delivery (default: 3). Higher values indicate higher priority.
Declaration
Swift
public let priority: Int -
Flag indicating whether the campaign should persist across app sessions. Defaults to false.
Declaration
Swift
public let isPersistent: Bool -
Frequency capping metadata for controlling campaign display frequency.
Declaration
Swift
public let fcMeta: MoEngageInAppFCMeta
-
Default initializer for the delivery control.
Declaration
Swift
public override init() -
Encodes the delivery control to an encoder.
Throws
Encoding errors if the data cannot be encoded.Declaration
Swift
public func encode(to encoder: any Encoder) throwsParameters
encoderThe encoder to write data to.
-
Initializes the delivery control from a decoder.
Throws
Decoding errors if the data is malformed.Declaration
Swift
public required init(from decoder: any Decoder) throwsParameters
decoderThe decoder to read data from.
-
Initializes the delivery control from an NSCoder for unarchiving.
Declaration
Swift
public required init?(coder: NSCoder)Parameters
coderThe coder to use for unarchiving.
Return Value
An initialized delivery control instance.
-
Encodes the delivery control using NSCoder for archiving.
Declaration
Swift
public func encode(with coder: NSCoder)Parameters
coderThe coder to use for archiving.