BotsShareAction

public class BotsShareAction : BotsAction

Class that represents a share 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 string to be shared with other applications.

    Declaration

    Swift

    public var shareText: 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)

    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.