API Reference

com.kinvey.android.push

Class AbstractPush

  • com.kinvey.android.push.AbstractPush
  • Direct Known Subclasses:
    FCMPush


    public class AbstractPush

    This class defines the behaviour of a Push implementation, and should be extended within the library to support with new providers.

    • Field Detail

      • TAG

        public static java.lang.String TAG
      • UNREGISTER_PUSH_REST_PATH

        public static java.lang.String UNREGISTER_PUSH_REST_PATH
      • REGISTER_PUSH_REST_PATH

        public static java.lang.String REGISTER_PUSH_REST_PATH
    • Constructor Detail

      • AbstractPush

        public AbstractPush(Client<?> client)

        This class defines the behaviour of a Push implementation, and should be extended within the library to support with new providers.

    • Method Detail

      • getPushServiceClass

        public java.lang.Class<?> getPushServiceClass()
      • setPushServiceClass

        public void setPushServiceClass(java.lang.Class<?> p)
      • initialize

        public AbstractPush initialize(android.app.Application currentApp)
      • getPushId

        public java.lang.String getPushId()
      • isPushEnabled

        public boolean isPushEnabled()
      • disablePush

        public void disablePush()
      • isInProduction

        public boolean isInProduction()
      • setInProduction

        public void setInProduction(boolean p)
      • getSenderIDs

        public java.lang.String[] getSenderIDs()
      • setSenderIDs

        public void setSenderIDs(java.lang.String[] p)
      • enablePushViaRest

        public void enablePushViaRest(com.kinvey.java.core.KinveyClientCallback<java.lang.Object> callback,
                                      java.lang.String deviceID)

        Async wrapper for enabling push notification for the current user

        Parameters:
        callback -
        • a callback with results of registration

        deviceID -
        • the current device's unique id from GCM

      • disablePushViaRest

        public void disablePushViaRest(com.kinvey.java.core.KinveyClientCallback<java.lang.Object> callback,
                                       java.lang.String deviceID)

        Async wrapper for disabling push notifications for the current user

        Parameters:
        callback -
        • a callback with results of unregistration

        deviceID -
        • the current device's unique id from GCM

      • getClient

        public Client<?> getClient()
      • setClient

        public void setClient(Client<?> p)