com.google.android.gcm
Class GCMBroadcastReceiver
java.lang.Object
BroadcastReceiver
com.google.android.gcm.GCMBroadcastReceiver
public class GCMBroadcastReceiver
- extends BroadcastReceiver
BroadcastReceiver
that receives GCM messages and delivers them to
an application-specific GCMBaseIntentService
subclass.
By default, the GCMBaseIntentService
class belongs to the application
main package and is named
GCMConstants.DEFAULT_INTENT_SERVICE_CLASS_NAME
. To use a new class,
the getGCMIntentServiceClassName(Context)
must be overridden.
Method Summary |
protected java.lang.String |
getGCMIntentServiceClassName(Context context)
Gets the class name of the intent service that will handle GCM messages. |
void |
onReceive(Context context,
Intent intent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GCMBroadcastReceiver
public GCMBroadcastReceiver()
onReceive
public final void onReceive(Context context,
Intent intent)
getGCMIntentServiceClassName
protected java.lang.String getGCMIntentServiceClassName(Context context)
- Gets the class name of the intent service that will handle GCM messages.