public final class PushNotificationsManager
extends org.jivesoftware.smack.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(org.jivesoftware.smack.XMPPConnection connection)
Get the singleton instance of PushNotificationsManager.
|
boolean |
isSupported()
Returns true if Push Notifications are supported by this account.
|
public static PushNotificationsManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
connection - TODO javadoc me pleasepublic boolean isSupported()
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public boolean enable(org.jxmpp.jid.Jid pushJid,
java.lang.String node)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
pushJid - TODO javadoc me pleasenode - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public boolean enable(org.jxmpp.jid.Jid pushJid,
java.lang.String node,
java.util.HashMap<java.lang.String,java.lang.String> publishOptions)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
pushJid - TODO javadoc me pleasenode - TODO javadoc me pleasepublishOptions - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public boolean disableAll(org.jxmpp.jid.Jid pushJid)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
pushJid - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public boolean disable(org.jxmpp.jid.Jid pushJid,
java.lang.String node)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
pushJid - TODO javadoc me pleasenode - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.