Class FcmConnection

java.lang.Object
tigase.push.fcm.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 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 
     

    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(String serverKey, String senderId, boolean testing)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLoggedIn(tigase.jaxmpp.core.client.SessionObject sessionObject)
     
    void
    onLoggedOut(tigase.jaxmpp.core.client.SessionObject sessionObject)
     
    protected void
     
    void
     
    void
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FcmConnection

      public FcmConnection(String serverKey, String senderId, boolean testing)
  • Method Details

    • 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(String payload) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
      Throws:
      tigase.jaxmpp.core.client.exceptions.JaxmppException
    • pushNotificationFailed

      protected void pushNotificationFailed(String error)