Package tigase.push.fcm
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 ClassesNested classes/interfaces inherited from interface tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler
tigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler.LoggedInEventNested classes/interfaces inherited from interface tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler
tigase.jaxmpp.core.client.JaxmppCore.LoggedOutHandler.LoggedOutEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonLoggedIn(tigase.jaxmpp.core.client.SessionObject sessionObject) voidonLoggedOut(tigase.jaxmpp.core.client.SessionObject sessionObject) protected voidpushNotificationFailed(String error) voidsendNotification(String payload) voidsetProvider(FcmProvider handler) voidstart()voidstop()
-
Constructor Details
-
FcmConnection
-
-
Method Details
-
setProvider
-
start
public void start() -
stop
public void stop() -
onLoggedIn
public void onLoggedIn(tigase.jaxmpp.core.client.SessionObject sessionObject) - Specified by:
onLoggedInin interfacetigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler
-
onLoggedOut
public void onLoggedOut(tigase.jaxmpp.core.client.SessionObject sessionObject) - Specified by:
onLoggedOutin interfacetigase.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
-