TransactionCampaign

public struct TransactionCampaign<AppAttributes> : CampaignProtocol where AppAttributes : ActivityAttributes
  • Declaration

    Swift

    public typealias ResultType = Result
  • Declaration

    Swift

    public func createResult(workspaceId: String) -> Result
  • Campaign Id unique to campaign.

    Declaration

    Swift

    public let campaignId: String
  • Campaign name.

    Declaration

    Swift

    public let campaignName: String
  • transactionId unique to campaign.

    Declaration

    Swift

    public let transactionId: String
  • The type of delivery the updates will be pushed.

    Declaration

    Swift

    public let deliveryType: String
  • The attribute type name that describes Widget data.

    Declaration

    Swift

    public let attributeType: String
  • Id unique to campaign dynamic update instance.

    Declaration

    Swift

    public let instanceId: String
  • App specific Live Activity static attributes.

    Declaration

    Swift

    public let appAttributes: AppAttributes
  • App specific Live Activit dynamic attributes.

    Declaration

    Swift

    public let appContent: AppAttributes.ContentState
  • The workspace Id campaign resides in.

    Declaration

    Swift

    public let workspaceId: String?
  • Create MoEngage campaign data input to create Live Activity.

    Declaration

    Swift

    public init(campaignId: String,
                campaignName: String,
                transactionId: String,
                attributeType: String, instanceId: String, appAttributes: AppAttributes,
                appContent: AppAttributes.ContentState,
                deliveryType: String = "Transactional Live Activity",
                workspaceId: String? = nil
    )

    Parameters

    campaignId

    Campaign Id unique to campaign.

    campaignName

    Campaign name.

    deliveryType

    The type of delivery the updates will be pushed.

    attributeType

    The attribute type name that describes Widget data.

    instanceId

    Id unique to campaign dynamic update instance.

    appAttributes

    App specific Live Activity static attributes.

    appContent

    App specific Live Activit dynamic attributes.

    workspaceId

    The workspace Id campaign resides in.

  • The result of Live Activity result.

    See more

    Declaration

    Swift

    public struct Result : CampaignResultProtocol