MoEngageInAppFCEvaluationResult
public struct MoEngageInAppFCEvaluationResult
Represents the result of a Frequency Capping evaluation
This struct contains the outcome of FC evaluation including whether the campaign can be shown, the reason for blocking (if any), and the error code to log.
-
Whether the campaign can be shown based on FC rules
Declaration
Swift
public let canShow: Bool -
The reason for blocking (if any)
Declaration
Swift
public let reason: MoEngageInAppFCBlockReason? -
The error code to log if blocked
Declaration
Swift
public let errorCode: MoEngageInAppStatTypeSwift? -
Whether to skip incrementing counters
Declaration
Swift
public let skipIncrement: Bool -
Creates a successful evaluation result
Declaration
Swift
public static func success() -> MoEngageInAppFCEvaluationResult -
Creates a blocked evaluation result
Declaration
Swift
public static func blocked(reason: MoEngageInAppFCBlockReason, errorCode: MoEngageInAppStatTypeSwift) -> MoEngageInAppFCEvaluationResult -
Creates an allowed result that should skip incrementing counters
Declaration
Swift
public static func allowedButSkipIncrement() -> MoEngageInAppFCEvaluationResult