StoryButtonComponent
@objc(StoryButtonComponent)
public final class StoryButtonComponent : StoryComponent
This class represents the Button 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]?
-
StoryButtonComponent 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 button component if exists