StoryProductCardComponent

@objc(StoryProductCardComponent)
public final class StoryProductCardComponent : StoryComponent

This class represents the ProductCard component.

  • text of the interactive component

    Declaration

    Swift

    @objc
    public let text: String
  • action url assigned to the interactive component

    Declaration

    Swift

    @objc
    public let actionUrl: String?
  • products assigned to the interactive component

    Declaration

    Swift

    @objc
    public let products: [STRProductItem]?
  • StoryProductCardComponent initialization

    Declaration

    Swift

    @objc
    public init(
        id: String,
        text: String,
        actionUrl: String?,
        products: [STRProductItem]?,
        customPayload: String?
    )

    Parameters

    id

    Id of the interactive component

    text

    text of the interactive component

    actionUrl

    action url assigned to the interactive component

    customPayload

    Custom payload for ProductCard component if exists