public final class ADMManifest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MESSAGE_HANDLER_CLASS_NAME
The name of your message handler class.
|
static java.lang.String |
PERMISSION_RECEIVE_MESSAGES
An Android permission required to receive ADM messages.
|
static java.lang.String |
PERMISSION_SEND_MESSAGES
An Android permission required to send ADM messages.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkManifestAuthoredProperly(android.content.Context context)
Validates that your manifest has properly defined all of the permissions, receivers,
and services needed to interact with ADM.
|
static java.lang.String |
getReceiverPermission(android.content.Context context)
Provides the permission that should be declared in your manifest to prevent other apps from
reading your messages.
|
public static final java.lang.String DEFAULT_MESSAGE_HANDLER_CLASS_NAME
ADMMessageReceiver.ADMMessageReceiver(Class)
.public static final java.lang.String PERMISSION_SEND_MESSAGES
public static final java.lang.String PERMISSION_RECEIVE_MESSAGES
<uses-permission>
tag in its manifest for this permission.public static void checkManifestAuthoredProperly(android.content.Context context)
context
- The application context.java.lang.IllegalStateException
- if ADM is not supported on the device or the manifest is incorrectly authored.public static java.lang.String getReceiverPermission(android.content.Context context)
context
- The application context.