ASAPPDelegate
@objc
public protocol ASAPPDelegate
A protocol defining functions that can be called by the framework.
-
Called when a user taps on a login button. Please set
ASAPP.useronce the user has logged in.Declaration
Swift
func chatViewControllerDidTapUserLoginButton() -
Called when the ASAPP view controller has disappeared.
Declaration
Swift
func chatViewControllerDidDisappear() -
Called when a user taps on a deep link.
Declaration
Swift
func chatViewControllerDidTapDeepLink(name: String, data: [String : Any]?) -
Called when a user taps on a web link. Please return
trueif ASAPP should open the web link orfalseotherwise.Declaration
Swift
func chatViewControllerShouldHandleWebLink(url: URL) -> Bool -
Called when certain agreed-upon events occur during a chat.
Declaration
Swift
func chatViewControllerDidReceiveChatEvent(name: String, data: [String : Any]?)
ASAPPDelegate Protocol Reference