ASAPPChatInsteadButton
to the layout and call the ASAPPChatInsteadButton.init
. Alternatively, you can manage the lifecycle yourself.
ASAPPChatInsteadButton.init
method. Only the phone number is mandatory. Optionally, you can overwrite the ASAPPChatInsteadButton.onChannel
and the ASAPPChatInsteadButton.onError
properties of the button.
ASAPP.init
call:
ASAPPChatInstead.init
, call ASAPPChatInstead.show
whenever you want to display the BottomSheetDialogFragment. Depending on cache, this might show a loading state.ASAPPChatInstead.clear
. ASAPP advises you to add the call onDestroy
for Activities and onDetachedFromWindow
for Fragments.
If you call ASAPPChatInstead.clear
after you create the BottomSheetDialogFragment view, it will have no effect.ASAPP.setDebugLoggingEnabled(true)
to enable the logs.
Alternatively, you can set callbacks with ASAPPChatInstead.init
.
asapp_primary
is not defined in the style used by the calling Activity. Please refer to Customization > Colors.
ASAPPChatInstead.show
.
R.string.asapp_chat_instead_default_header
. You can send a different string when initializing Chat Instead, but it’s important to know the ASAPP Backend will overwrite it if the call is successful.
asapp_primary
and asapp_on_primary
.