StoryMedia

@objc
public final class StoryMedia : NSObject

This data class represents the media of a story.

  • Type of the story

    Declaration

    Swift

    @objc
    public let type: StoryType
  • List of action urls in the story

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    public let actionUrl: String?
  • URL of the preview image of the story

    Declaration

    Swift

    @objc
    public var previewUrl: URL?
  • StoryMedia initialization

    Declaration

    Swift

    @objc
    public init(type: StoryType,
                actionUrlList: [String]?,
                actionUrl: String?,
                previewUrl: URL?)

    Parameters

    type

    Type of the story

    actionUrlList

    List of action urls in the story

    actionUrl

    URL which the user has just interacted with

    previewUrl

    URL of the preview image of the story