VerticalFeedButtonComponent
@objc(VerticalFeedButtonComponent)
public final class VerticalFeedButtonComponent : VerticalFeedItemComponent
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]?
-
VerticalFeedButtonComponent 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