Class FcmConnection

  • All Implemented Interfaces:
    tigase.jaxmpp.core.client.eventbus.EventHandler, tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler, tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler

    public class FcmConnection
    extends java.lang.Object
    implements tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler, tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler
    Created by andrzej on 20.05.2017.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FcmConnection.FcmModule  
      • Nested classes/interfaces inherited from interface tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler

        tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler.LoggedInEvent
      • Nested classes/interfaces inherited from interface tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler

        tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler.LoggedOutEvent
    • Constructor Summary

      Constructors 
      Constructor Description
      FcmConnection​(java.lang.String serverKey, java.lang.String senderId, boolean testing)  
    • Constructor Detail

      • FcmConnection

        public FcmConnection​(java.lang.String serverKey,
                             java.lang.String senderId,
                             boolean testing)
    • Method Detail

      • setProvider

        public void setProvider​(FcmProvider handler)
      • start

        public void start()
      • stop

        public void stop()
      • onLoggedIn

        public void onLoggedIn​(tigase.jaxmpp.core.client.SessionObject sessionObject)
        Specified by:
        onLoggedIn in interface tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler
      • onLoggedOut

        public void onLoggedOut​(tigase.jaxmpp.core.client.SessionObject sessionObject)
        Specified by:
        onLoggedOut in interface tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler
      • sendNotification

        public void sendNotification​(java.lang.String payload)
                              throws tigase.jaxmpp.core.client.exceptions.JaxmppException
        Throws:
        tigase.jaxmpp.core.client.exceptions.JaxmppException
      • pushNotificationFailed

        protected void pushNotificationFailed​(java.lang.String error)