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 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
-
Constructor Summary
Constructors Constructor Description FcmConnection(java.lang.String serverKey, java.lang.String senderId, boolean testing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onLoggedIn(tigase.jaxmpp.core.client.SessionObject sessionObject)
void
onLoggedOut(tigase.jaxmpp.core.client.SessionObject sessionObject)
protected void
pushNotificationFailed(java.lang.String error)
void
sendNotification(java.lang.String payload)
void
setProvider(FcmProvider handler)
void
start()
void
stop()
-
-
-
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 interfacetigase.jaxmpp.core.client.JaxmppCore.LoggedInHandler
-
onLoggedOut
public void onLoggedOut(tigase.jaxmpp.core.client.SessionObject sessionObject)
- Specified by:
onLoggedOut
in interfacetigase.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)
-
-