|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.android.gcm.GCMConstants
public final class GCMConstants
Constants used by the GCM library.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_INTENT_SERVICE_CLASS_NAME
|
static java.lang.String |
ERROR_ACCOUNT_MISSING
There is no Google account on the phone. |
static java.lang.String |
ERROR_AUTHENTICATION_FAILED
Bad password. |
static java.lang.String |
ERROR_INVALID_PARAMETERS
The request sent by the phone does not contain the expected parameters. |
static java.lang.String |
ERROR_INVALID_SENDER
The sender account is not recognized. |
static java.lang.String |
ERROR_PHONE_REGISTRATION_ERROR
Incorrect phone registration with Google. |
static java.lang.String |
ERROR_SERVICE_NOT_AVAILABLE
The device can't read the response, or there was a 500/503 from the server that can be retried later. |
static java.lang.String |
EXTRA_APPLICATION_PENDING_INTENT
Extra used on INTENT_TO_GCM_REGISTRATION to get the application
id. |
static java.lang.String |
EXTRA_ERROR
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate
an error when the registration fails. |
static java.lang.String |
EXTRA_REGISTRATION_ID
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate
the registration id when the registration succeeds. |
static java.lang.String |
EXTRA_SENDER
Extra used on INTENT_TO_GCM_REGISTRATION to indicate the sender
account (a Google email) that owns the application. |
static java.lang.String |
EXTRA_SPECIAL_MESSAGE
Type of message present in the INTENT_FROM_GCM_MESSAGE intent. |
static java.lang.String |
EXTRA_TOTAL_DELETED
Number of messages deleted by the server because the device was idle. |
static java.lang.String |
EXTRA_UNREGISTERED
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate
that the application has been unregistered. |
static java.lang.String |
INTENT_FROM_GCM_LIBRARY_RETRY
Intent used by the GCM library to indicate that the registration call should be retried. |
static java.lang.String |
INTENT_FROM_GCM_MESSAGE
Intent sent by GCM containing a message. |
static java.lang.String |
INTENT_FROM_GCM_REGISTRATION_CALLBACK
Intent sent by GCM indicating with the result of a registration request. |
static java.lang.String |
INTENT_TO_GCM_REGISTRATION
Intent sent to GCM to register the application. |
static java.lang.String |
INTENT_TO_GCM_UNREGISTRATION
Intent sent to GCM to unregister the application. |
static java.lang.String |
PERMISSION_GCM_INTENTS
Permission necessary to receive GCM intents. |
static java.lang.String |
VALUE_DELETED_MESSAGES
Special message indicating the server deleted the pending messages. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INTENT_TO_GCM_REGISTRATION
public static final java.lang.String INTENT_TO_GCM_UNREGISTRATION
public static final java.lang.String INTENT_FROM_GCM_REGISTRATION_CALLBACK
public static final java.lang.String INTENT_FROM_GCM_LIBRARY_RETRY
public static final java.lang.String INTENT_FROM_GCM_MESSAGE
public static final java.lang.String EXTRA_SENDER
INTENT_TO_GCM_REGISTRATION
to indicate the sender
account (a Google email) that owns the application.
public static final java.lang.String EXTRA_APPLICATION_PENDING_INTENT
INTENT_TO_GCM_REGISTRATION
to get the application
id.
public static final java.lang.String EXTRA_UNREGISTERED
INTENT_FROM_GCM_REGISTRATION_CALLBACK
to indicate
that the application has been unregistered.
public static final java.lang.String EXTRA_ERROR
INTENT_FROM_GCM_REGISTRATION_CALLBACK
to indicate
an error when the registration fails. See constants starting with ERROR_
for possible values.
public static final java.lang.String EXTRA_REGISTRATION_ID
INTENT_FROM_GCM_REGISTRATION_CALLBACK
to indicate
the registration id when the registration succeeds.
public static final java.lang.String EXTRA_SPECIAL_MESSAGE
INTENT_FROM_GCM_MESSAGE
intent.
This extra is only set for special messages sent from GCM, not for
messages originated from the application.
public static final java.lang.String VALUE_DELETED_MESSAGES
public static final java.lang.String EXTRA_TOTAL_DELETED
VALUE_DELETED_MESSAGES
public static final java.lang.String PERMISSION_GCM_INTENTS
public static final java.lang.String DEFAULT_INTENT_SERVICE_CLASS_NAME
GCMBroadcastReceiver
,
Constant Field Valuespublic static final java.lang.String ERROR_SERVICE_NOT_AVAILABLE
public static final java.lang.String ERROR_ACCOUNT_MISSING
public static final java.lang.String ERROR_AUTHENTICATION_FAILED
public static final java.lang.String ERROR_INVALID_PARAMETERS
public static final java.lang.String ERROR_INVALID_SENDER
public static final java.lang.String ERROR_PHONE_REGISTRATION_ERROR
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |