StoryPromoCodeComponent

@objc(StoryPromoCodeComponent)
public final class StoryPromoCodeComponent : StoryComponent

This class represents the PromoCode component.

  • PromoCode text that the user copied

    Declaration

    Swift

    @objc
    public let text: String
  • StoryRatingComponent initialization

    Declaration

    Swift

    @objc
    public init(id: String,
                text: String,
                customPayload: String?)

    Parameters

    id

    Id of the interactive component

    text

    PromoCode text that the user copied

    customPayload

    Custom payload for PromoCode component if exists