public class UsherSdkIntentContracts
extends java.lang.Object
UsherSdkIntentContracts class houses constants that the MicroStrategy Badge SDK
exposes as contracts for SDK consumers. You can interact with the SDK through a
BroadcastReceiver that can be registered in the application level
AndroidManifest.xml. You can refer to the constants defined here to receive push
notifications and retrieve data by calling Intent.getStringExtra(String) and using the
EXTRA_PARAM field.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_OBSERVE_INBOX_ENTITY
This is exposed to observe the
InboxEntity object serialized as a JSON string, sent
from the SDK through a BroadcastReceiver. |
static java.lang.String |
ACTION_OBSERVE_PUSH_NOTIFICATION_ENTITY
This is exposed to observe the
PushNotificationEntity object serialized as a JSON
string, sent from the SDK through a BroadcastReceiver. |
static java.lang.String |
EXTRA_PARAM
The parameter that is attached to the
Intent in
BroadcastReceiver.onReceive(Context, Intent). |
public static final java.lang.String ACTION_OBSERVE_INBOX_ENTITY
InboxEntity object serialized as a JSON string, sent
from the SDK through a BroadcastReceiver.
You need to register a BroadcastReceiver in the application level
AndroidManifest.xml file with the action set to this value. Then, you can retrieve
the JSON string by calling Intent.getStringExtra(String) and using the
EXTRA_PARAM from
BroadcastReceiver.onReceive(Context, Intent). You can transform this
JSON string value to an InboxEntity object by using
InboxEntity.fromJsonString(String).
Value is "com.microstrategy.usher.sdk.intent.ACTION_OBSERVE_INBOX_ENTITY".
public static final java.lang.String ACTION_OBSERVE_PUSH_NOTIFICATION_ENTITY
PushNotificationEntity object serialized as a JSON
string, sent from the SDK through a BroadcastReceiver.
You need to register a BroadcastReceiver in the application level
AndroidManifest.xml file with the action set to this value. Then, you can retrieve
the JSON string by calling Intent.getStringExtra(String) and using the
EXTRA_PARAM from
BroadcastReceiver.onReceive(Context, Intent). You can transform this
JSON string value to a PushNotificationEntity object using
PushNotificationEntity.fromJsonString(String).
Value is "com.microstrategy.usher.sdk.intent.ACTION_OBSERVE_PUSH_NOTIFICATION_ENTITY".
public static final java.lang.String EXTRA_PARAM
Intent in
BroadcastReceiver.onReceive(Context, Intent). Value is
"extra_param".