MoEngageInAppStatTypeSwift

public enum MoEngageInAppStatTypeSwift : Int, CaseIterable

This enum defines error codes specifically for the Frequency Capping (FC) feature in MoEngage InApps

Error Categories

  • Priority Stage Errors: Occur during campaign evaluation before display
  • Impression Stage Errors: Occur during impression tracking after display

Priority Stage FC Errors

  • All Campaigns frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_A_C

    Declaration

    Swift

    case priorityFcAC
  • Screen Load frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_S_L

    Declaration

    Swift

    case priorityFcSL
  • Session Start frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_S_S

    Declaration

    Swift

    case priorityFcSS
  • Custom Event frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_C_E

    Declaration

    Swift

    case priorityFcCE
  • All Tags frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_ALL_T

    Declaration

    Swift

    case priorityFcAllT
  • Any Tag frequency capping limit reached during priority evaluation

    • Error Code: PRT_FC_ANY_T

    Declaration

    Swift

    case priorityFcAnyT

Impression Stage FC Errors

  • All Campaigns frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_A_C

    Declaration

    Swift

    case impressionFcAC
  • Screen Load frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_S_L

    Declaration

    Swift

    case impressionFcSL
  • Session Start frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_S_S

    Declaration

    Swift

    case impressionFcSS
  • Custom Event frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_C_E

    Declaration

    Swift

    case impressionFcCE
  • All Tags frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_ALL_T

    Declaration

    Swift

    case impressionFcAllT
  • Any Tag frequency capping limit reached during impression tracking

    • Error Code: IMP_FC_ANY_T

    Declaration

    Swift

    case impressionFcAnyT

Conversion to Objective-C Enum

  • Converts Swift FC error code enum to Objective-C MoEngageInAppStatType enum

    This method maps the Swift FC error codes to their corresponding Objective-C enum values. The Objective-C enum values are required for the stats tracking system to work correctly.

    Declaration

    Swift

    public func toMoEngageInAppStatType() -> MoEngageInAppStatType

    Return Value

    The corresponding MoEngageInAppStatType value

String Representation

  • String representation for each error code

    Returns the corresponding error code string for the FC error type. This is the standardized string format used for logging and error reporting.

    Declaration

    Swift

    public var errorCode: String { get }

    Return Value

    The corresponding error code string (e.g., “PRT_FC_S_L”, “IMP_FC_A_C”)