eu.easypush.pushlibrary.utils
Class PushRegistrar

java.lang.Object
  extended by eu.easypush.pushlibrary.utils.PushRegistrar
All Implemented Interfaces:
PushConstants

public class PushRegistrar
extends java.lang.Object
implements PushConstants


Field Summary
static java.lang.String EXTRA_MESSAGE
           
 
Fields inherited from interface eu.easypush.pushlibrary.utils.PushConstants
TAG
 
Constructor Summary
PushRegistrar()
           
 
Method Summary
static void addOnNotificationRegistrationIdReceivedListeners(OnNotificationRegistrationIdReceivedListener listener)
           
static void checkAndRegister(android.content.Context c, java.lang.String... senderIds)
           
static void checkDevice(android.content.Context c)
           
static boolean checkPlayServices(android.content.Context c)
          Check the device to make sure it has the Google Play Services APK.
static void register(android.content.Context c, java.lang.String... senderIds)
           
static void removeOnNotificationRegistrationIdReceivedListeners(OnNotificationRegistrationIdReceivedListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRA_MESSAGE

public static final java.lang.String EXTRA_MESSAGE
See Also:
Constant Field Values
Constructor Detail

PushRegistrar

public PushRegistrar()
Method Detail

addOnNotificationRegistrationIdReceivedListeners

public static void addOnNotificationRegistrationIdReceivedListeners(OnNotificationRegistrationIdReceivedListener listener)

removeOnNotificationRegistrationIdReceivedListeners

public static void removeOnNotificationRegistrationIdReceivedListeners(OnNotificationRegistrationIdReceivedListener listener)

checkDevice

public static void checkDevice(android.content.Context c)

register

public static void register(android.content.Context c,
                            java.lang.String... senderIds)

checkAndRegister

public static void checkAndRegister(android.content.Context c,
                                    java.lang.String... senderIds)

checkPlayServices

public static boolean checkPlayServices(android.content.Context c)
Check the device to make sure it has the Google Play Services APK. If it doesn't, display a dialog that allows users to download the APK from the Google Play Store or enable it in the device's system settings.