Campaign

public struct Campaign<AppAttributes> where AppAttributes : ActivityAttributes

The MoEngage Live Activity campaign data.

  • Campaign Id unique to campaign.

    Declaration

    Swift

    public let campaignId: String
  • Campaign name.

    Declaration

    Swift

    public let campaignName: 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, deliveryType: String,
        attributeType: String, instanceId: String, appAttributes: AppAttributes,
        appContent: AppAttributes.ContentState, 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