BotsUrlAction

public class BotsUrlAction : BotsAction

Class that represents a url action.

  • url

    The url associated with the action.

    Declaration

    Swift

    public private(set) var url: String? { get }
  • Is set to true if the url is to be opened in webview.

    Declaration

    Swift

    public private(set) var openInWebview: Bool { get }
  • If the action consists of an image, pass the URL of the image. Otherwise, pass an empty string"“.

    Declaration

    Swift

    public private(set) var imageUrl: String { get }
  • The string to be displayed for the action.

    Declaration

    Swift

    public private(set) var label: String { get }
  • The channel custom properties associated with the action.

    Declaration

    Swift

    public private(set) var channelExtensions: [String : AnyObject]? { get }
  • The constructor for initializing a BotsUrlAction object.

    Declaration

    Swift

    public init(imageUrl: String, label: String, url: String, openInWebview: Bool = false)

    Parameters

    imageUrl

    The image url if the action consists of an image, otherwise pass an empty string “”.

    label

    The string to be displayed for the action.

    url

    The url associated with the action.