ASAPP
ASAPP SDK main interface, used to configure, customize and start ASAPP Chats.
Properties
The ASAPPChatEventHandler interface, called when certain agreed-upon events occur during chat.
The current ASAPPConfig being used by ASAPP. Note: Please avoid setting this variable on production use, as it may create unnecessary session clearing and API calls. Instead, call init with the desired configuration.
The ASAPPConversationStatusHandler handler, called when the the ASAPP SDK receives an ASAPP push notification. If your application already handles push notifications, please use ASAPP.onFirebaseMessageReceived so that the SDK can handle incoming ASAPP notifications.
The ASAPPDeepLinkHandler instance, called when the user taps on an ASAPP Chat deep link.
Helper method that checks if the currently displaying Activity is from ASAPP SDK.
Used for development and debugging only.
The ASAPPUserLoginHandler instance, called when the user needs to log in again.
The ASAPPUserLoginResultHandler instance, called when the user needs to log in again.
The ASAPPWebLinkHandler instance, called when the user taps on a web link. This is only needed if host app requires custom handling of web links.
Functions
Clears the current ASAPP session. This also includes any cached messages.
Disables Push Notifications for the current ASAPP.user and device.
Makes an async request to get the current ASAPPConversationStatus. The resulting status is notified back via conversationStatusHandler. If that handler isn't set, calling this function will have no effect.
Makes an async request to get the current ASAPPConversationStatus.
DEPRECATED. Please use ASAPP.conversationStatusHandler instead. For more details, please see https://docs.asapp.com/en/integration/android-sdk/push-notifications.html
Returns the current ASAPPStyleConfig.
Processes an incoming push notification message from Firebase. If this message came from ASAPP ASAPP.conversationStatusHandler will be triggered.
For debug use only.
Sets the intent on the current ASAPP Chat Activity.
Enable/disable logging. NOTE: You should not allow debug logs for production builds, to avoid having sensitive logs available in release builds. This allows Debug and Warning logs to be printed to console, while Error level logs will always be printed.
Tells whether this Intent was received with the purpose of opening the ASAPP chat.
Updates the Push Notification Token used for the current ASAPP.user and device, with the given token. The new token will be used by ASAPP's Backend to send Push Notifications to the current user+device, via the desired Push Notification channel as defined during integration.