BotsPostbackAction
public class BotsPostbackAction : BotsAction
Class that represents a postback action.
-
If the action consists of an image, pass the URL of the image. Otherwise, pass an empty string"“.
Declaration
Swift
public let imageUrl: String -
The string to be displayed for the action.
Declaration
Swift
public let label: String -
The channel custom properties associated with the action.
Declaration
Swift
public private(set) var channelExtensions: [String : AnyObject]? { get } -
The constructor for initializing a BotsLocationAction object.
Declaration
Swift
public init(imageUrl: String, label: String, postback: Any)Parameters
imageUrlThe image url if the action consists of an image, otherwise pass an empty string “”.
labelThe string to be displayed for the action.
postbackThe postback object associated with the action.
BotsPostbackAction Class Reference