public final class PushNotificationsManager extends Manager
| Modifier and Type | Method and Description |
|---|---|
boolean |
disable(org.jxmpp.jid.Jid pushJid,
java.lang.String node)
Disable push notifications of an specific node.
|
boolean |
disableAll(org.jxmpp.jid.Jid pushJid)
Disable all push notifications.
|
boolean |
enable(org.jxmpp.jid.Jid pushJid,
java.lang.String node)
Enable push notifications.
|
boolean |
enable(org.jxmpp.jid.Jid pushJid,
java.lang.String node,
java.util.HashMap<java.lang.String,java.lang.String> publishOptions)
Enable push notifications.
|
static PushNotificationsManager |
getInstanceFor(XMPPConnection connection)
Get the singleton instance of PushNotificationsManager.
|
boolean |
isSupported()
Returns true if Push Notifications are supported by this account.
|
boolean |
isSupportedByServer()
Deprecated.
Use
isSupported() instead. |
connection, getAuthenticatedConnectionOrThrow, schedulepublic static PushNotificationsManager getInstanceFor(XMPPConnection connection)
connection - @Deprecated public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
isSupported() instead.SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic boolean isSupported() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic boolean enable(org.jxmpp.jid.Jid pushJid, java.lang.String node) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
pushJid - node - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic boolean enable(org.jxmpp.jid.Jid pushJid, java.lang.String node, java.util.HashMap<java.lang.String,java.lang.String> publishOptions) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
pushJid - node - publishOptions - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic boolean disableAll(org.jxmpp.jid.Jid pushJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
pushJid - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic boolean disable(org.jxmpp.jid.Jid pushJid, java.lang.String node) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
pushJid - node - SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedException