VerticalFeedItem

@objc(VerticalFeedItem)
public final class VerticalFeedItem : NSObject

This data class represents a verticalFeed inside a verticalFeed group.

  • ID of the verticalFeed

    Declaration

    Swift

    @objc
    public let uniqueId: String
  • Title of the verticalFeed

    Declaration

    Swift

    @objc
    public let title: String
  • Name of the verticalFeed

    Declaration

    Swift

    @objc
    public let name: String?
  • Index of the verticalFeed among other stories of the verticalFeed group

    Declaration

    Swift

    @objc
    public let index: Int
  • State of the verticalFeed that shows whether the verticalFeed is seen or not

    Declaration

    Swift

    @objc
    public let seen: Bool
  • Time of the verticalFeed that user watched

    Declaration

    Swift

    @objc
    public let currentTime: Int
  • URL of the preview image of the verticalFeed

    Declaration

    Swift

    @objc
    public var previewUrl: URL?
  • List of verticalFeed components in the verticalFeed

    Declaration

    Swift

    @objc
    public let verticalFeedItemComponentList: [VerticalFeedItemComponent]?
  • URL which the user has just interacted with

    Declaration

    Swift

    @objc
    public let actionUrl: String?
  • Related product content of interactive incase of click action

    Declaration

    Swift

    @objc
    public let actionProducts: [STRProductItem]?
  • VerticalFeed initialization

    Declaration

    Swift

    @objc
    public init(
        id: String,
        index: Int,
        title: String,
        name: String?,
        seen: Bool,
        currentTime: Int,
        previewUrl: URL?,
        verticalFeedItemComponentList: [VerticalFeedItemComponent]?,
        actionUrl: String?,
        actionProducts: [STRProductItem]?
    )

    Parameters

    id

    ID of the verticalFeed

    index

    Index of the verticalFeed among other stories of the verticalFeed group

    title

    Title of the verticalFeed

    name

    Name of the verticalFeed

    seen

    State of the verticalFeed that shows whether the verticalFeed is seen or not

    currentTime

    Time of the verticalFeed that user watched

    previewUrl

    URL of the preview image of the verticalFeed

    verticalFeedItemComponentList

    List of verticalFeed components in the verticalFeed

    actionUrl

    URL which the user has just interacted with

    products

    Related product content of interactive incase of click action