public final class UserTuneManager
extends org.jivesoftware.smack.Manager
publishUserTune(UserTuneElement) method. This will publish the node.
clearUserTune() method. This will send a disabling publish signal.
addUserTuneListener(UserTuneListener) method.
Message, use 'message.addExtension(userTuneElement)'.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USERTUNE_NODE |
static java.lang.String |
USERTUNE_NOTIFY |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUserTuneListener(UserTuneListener listener) |
void |
clearUserTune() |
void |
disableUserTuneNotifications() |
void |
enableUserTuneNotifications() |
static UserTuneManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) |
void |
publishUserTune(UserTuneElement userTuneElement) |
boolean |
removeUserTuneListener(UserTuneListener listener) |
static void |
setUserTuneNotificationsEnabledByDefault(boolean bool) |
public static final java.lang.String USERTUNE_NODE
public static final java.lang.String USERTUNE_NOTIFY
public static UserTuneManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) throws org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotLoggedInExceptionpublic static void setUserTuneNotificationsEnabledByDefault(boolean bool)
public void enableUserTuneNotifications()
public void disableUserTuneNotifications()
public void clearUserTune()
throws org.jivesoftware.smack.SmackException.NotLoggedInException,
PubSubException.NotALeafNodeException,
org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.SmackException.NotConnectedException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInExceptionPubSubException.NotALeafNodeExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionjava.lang.InterruptedExceptionpublic void publishUserTune(UserTuneElement userTuneElement) throws org.jivesoftware.smack.SmackException.NotLoggedInException, PubSubException.NotALeafNodeException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotLoggedInExceptionPubSubException.NotALeafNodeExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionjava.lang.InterruptedExceptionpublic boolean addUserTuneListener(UserTuneListener listener)
public boolean removeUserTuneListener(UserTuneListener listener)