compileSdkVersion
.
build.gradle
file:
build.gradle
:
prod
(Production) – defaultsandbox
(Sandbox)res/values/config.xml
, then add:
cello_env
. For instance, to set the environment to sandbox:
onCreate()
method of your application class:
Note: If you don’t currently implement a custom application, you’ll need to create one. A custom application looks like this:
Note: Cello SDK must be initialized inside the application onCreate()
method. Initializing anywhere else will result in the SDK not behaving as expected and could even result in the host app crashing.
showFab()
method from the Cello SDK to present a Floating Action Button (FAB) within your app. This FAB is pre-styled but may not perfectly match your app’s look and feel.
Cello.openWidget()
.
Cello.initialize()
Name | Type | Description | Required |
---|---|---|---|
activity | Activity | This is the reference to the MainActivity | Yes |
productId | String | Identifier of the product your users will refer | Yes |
token | String | Access token generated for the given user | Yes |
Cello.showFab()
Cello.hideFab()
Cello.openWidget()
Cello.hideWidget()
Cello.getActiveUcc()
ucc
and invite link for the currently logged in user.
Cello.changeLanguage()
Cello.shutdown()