StoryMedia
@objc(StoryMedia)
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 story components in the story
Declaration
Swift
@objc public let storyComponentList: [StoryComponent]?
-
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, storyComponentList: [StoryComponent]?, actionUrlList: [String]?, actionUrl: String?, previewUrl: URL?)
Parameters
type
Type of the story
storyComponentList
List of story components in 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