public static class Tooleap.Consts
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APP_ID
Parameter name of the mini app id.
|
static java.lang.String |
CONTEXT_PACKAGE
Parameter for retrieving the package name that this mini app appeared on-top-of
For us with persistent mini-apps with contextual filters.
|
static java.lang.String |
USER_REMOVED_MINI_APP
The broadcast name that is fired when the user removes a mini app by dragging it to the 'X'.
|
| Constructor and Description |
|---|
Tooleap.Consts() |
public static final java.lang.String APP_ID
Parameter name of the mini app id.
Used when listening to USER_REMOVED_MINI_APP broadcast, to get the removed mini app id.
Extract this parameter from the broadcast intent in the following way:
intent.getLongExtra(Tooleap.Consts.APP_ID, 0);
USER_REMOVED_MINI_APP,
Constant Field Valuespublic static final java.lang.String USER_REMOVED_MINI_APP
The broadcast name that is fired when the user removes a mini app by dragging it to the 'X'.
Example of use:
BroadcastReceiver myBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
long miniAppId = intent.getLongExtra(Tooleap.Consts.APP_ID, 0); // Get the removed mini app id
// Do something...
}
};
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(Tooleap.Consts.USER_REMOVED_MINI_APP);
registerReceiver(myBroadcastReceiver, intentFilter);
APP_ID,
Constant Field Valuespublic static final java.lang.String CONTEXT_PACKAGE
Parameter for retrieving the package name that this mini app appeared on-top-of For us with persistent mini-apps with contextual filters. Extract this parameter from the Activity intent in the following way:
intent.getStringExtra(Tooleap.Consts.CONTEXT_PACKAGE);