MoEngageInAppAction

@objc
public class MoEngageInAppAction : MoEngageModelObject

MoEngageInAppAction gives all the information about the inApp action

  • Gives the action type Navigation/Custom Action

    Declaration

    Swift

    @objc
    public let actionType: MoEngageInAppActionType
  • If the action type is Navigation then the screenName indicates the name of the screen to which navigation has to be performed

    Declaration

    Swift

    @objc
    public let screenName: String?
  • Custom key-value pairs entered while creating the campaign for the action.

    Declaration

    Swift

    @objc
    public let keyValuePairs: [String : Any]
  • Method to create an instance of MoEngageInAppAction

    This method is for internal purpose. Do not call it explicitly.

    Declaration

    Swift

    @objc
    public init(actionType: MoEngageInAppActionType, screenName: String?, keyValuePairs: [String : Any])

    Parameters

    actionType

    Gives the action type Navigation/Custom Action

    screenName

    Incase the action type is Navigation then the screenName to which the navigation has to be performed

    keyValuePairs

    Custom key-value pairs entered while creating the campaign for the action.

  • Method to create an instance of MoEngageInAppAction

    Note

    This method is for internal purpose. Do not call it explicitly.

    Declaration

    Swift

    @objc
    public convenience init(actionType: MoEngageInAppActionType, keyValuePairs: [String : Any])

    Parameters

    actionType

    Gives the action type Navigation/Custom Action

    keyValuePairs

    Custom key-value pairs entered while creating the campaign for the action.