ASAPPChatInsteadViewController
@objc(ASAPPChatInsteadViewController)
public class ASAPPChatInsteadViewController : UIViewController
Shows the UI for Chat Instead.
-
Designated initializer. Note that creating an instance of this class will automatically try to fetch remote settings. We recommend you create an instance well in advance of showing the view controller.
Declaration
Swift
public init(phoneNumber: String, delegate: ASAPPChannelDelegate, title: String? = nil, chatIcon: UIImage? = nil)Parameters
phoneNumberThe phone number to call when the phone channel is selected. Must be a valid phone number.
delegateAn object implementing
ChatInsteadChannelDelegate.titleA title which is displayed at the top of the Chat Instead UI. If no title is provided, a default value will be used. Please note that if there’s a new title when fetching settings, that one is going to be displayed.
chatIconYou can customize the icon for the Chat channel.
-
Designated initializer. Note that creating an instance of this class will automatically try to fetch remote settings. We recommend you create an instance well in advance of showing the view controller.
Declaration
Swift
@objc public init(phoneNumber: String, delegate: ASAPPChannelDelegate, title: NSString?, chatIcon: UIImage? = nil)Parameters
phoneNumberThe phone number to call when the phone channel is selected. Must be a valid phone number.
delegateAn object implementing
ChatInsteadChannelDelegate.titleA title which is displayed at the top of the Chat Instead UI. If no title is provided, a default value will be used. Please note that if there’s a new title when fetching settings, that one is going to be displayed.
chatIconYou can customize the icon for the Chat channel.
ASAPPChatInsteadViewController Class Reference