AeroGear Android Library 1.2.0

org.jboss.aerogear.android.unifiedpush
Interface MessageHandler


public interface MessageHandler

For receiving GCM messages this interface needs to be implemented.


Method Summary
 void onDeleteMessage(android.content.Context context, android.os.Bundle message)
          Invoked when the Google Cloud Messaging Server deleted some pending messages because they were collapsible.
 void onError()
          Invoked when the Google Cloud Messaging Server indicates a send error.
 void onMessage(android.content.Context context, android.os.Bundle message)
          Invoked when the Google Cloud Messaging Server delivered a message to the device.
 

Method Detail

onDeleteMessage

void onDeleteMessage(android.content.Context context,
                     android.os.Bundle message)
Invoked when the Google Cloud Messaging Server deleted some pending messages because they were collapsible.

Parameters:
context - The Context in which the AeroGear message receiver is running.
message - A map of extended data from the intent, delivered to the AeroGear message receiver.

onMessage

void onMessage(android.content.Context context,
               android.os.Bundle message)
Invoked when the Google Cloud Messaging Server delivered a message to the device.

Parameters:
context - The Context in which the AeroGear message receiver is running.
message - A map containing the submitted key/value pairs

onError

void onError()
Invoked when the Google Cloud Messaging Server indicates a send error.


AeroGear Android Library 1.2.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.