CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
unicopa.copa.app.GCMIntentService Class Reference

IntentService responsible for handling GCM messages. More...

Inheritance diagram for unicopa.copa.app.GCMIntentService:
Inheritance graph
Collaboration diagram for unicopa.copa.app.GCMIntentService:
Collaboration graph

Public Member Functions

void onError (Context context, String errorId)
 Called on registration or unregistration error. More...
 
- Public Member Functions inherited from unicopa.copa.app.gcm.GCMBaseIntentService
final void onHandleIntent (Intent intent)
 

Protected Member Functions

void onRegistered (Context context, String registrationId) throws NoStorageException
 Called after a device has been registered. More...
 
void onUnregistered (Context context, String registrationId) throws NoStorageException
 Called after a device has been unregistered. More...
 
void onMessage (Context arg0, Intent intent)
 Called when a cloud message has been received. More...
 
void onDeletedMessages (Context context, int total)
 
boolean onRecoverableError (Context context, String errorId)
 
- Protected Member Functions inherited from unicopa.copa.app.gcm.GCMBaseIntentService
 GCMBaseIntentService ()
 Constructor that does not set a sender id, useful when the sender id is context-specific. More...
 
 GCMBaseIntentService (String...senderIds)
 Constructor used when the sender id(s) is fixed.
 
String[] getSenderIds (Context context)
 Gets the sender ids. More...
 
void onDeletedMessages (Context context, int total)
 Called when the GCM server tells pending messages have been deleted because the device was idle. More...
 
boolean onRecoverableError (Context context, String errorId)
 Called on a registration error that could be retried. More...
 

Additional Inherited Members

- Static Public Attributes inherited from unicopa.copa.app.gcm.GCMBaseIntentService
static final String TAG = "GCMBaseIntentService"
 

Detailed Description

IntentService responsible for handling GCM messages.

Member Function Documentation

void unicopa.copa.app.GCMIntentService.onError ( Context  context,
String  errorId 
)
virtual

Called on registration or unregistration error.

Parameters
contextapplication's context.
errorIderror id returned by the GCM service.

Implements unicopa.copa.app.gcm.GCMBaseIntentService.

void unicopa.copa.app.GCMIntentService.onMessage ( Context  context,
Intent  intent 
)
protectedvirtual

Called when a cloud message has been received.

Parameters
contextapplication's context.
intentintent containing the message payload as extras.

Implements unicopa.copa.app.gcm.GCMBaseIntentService.

void unicopa.copa.app.GCMIntentService.onRegistered ( Context  context,
String  registrationId 
) throws NoStorageException
protectedvirtual

Called after a device has been registered.

Parameters
contextapplication's context.
registrationIdthe registration id returned by the GCM service.
Exceptions
NoStorageException

Implements unicopa.copa.app.gcm.GCMBaseIntentService.

void unicopa.copa.app.GCMIntentService.onUnregistered ( Context  context,
String  registrationId 
) throws NoStorageException
protectedvirtual

Called after a device has been unregistered.

Parameters
registrationIdthe registration id that was previously registered.
contextapplication's context.
Exceptions
NoStorageException

Implements unicopa.copa.app.gcm.GCMBaseIntentService.


The documentation for this class was generated from the following file: