Package org.jivesoftware.smackx.usertune
Class UserTuneManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.usertune.UserTuneManager
public final class UserTuneManager
extends org.jivesoftware.smack.Manager
Entry point for Smacks API for XEP-0118: User Tune.
To publish a UserTune, please use
To stop publishing a UserTune, please use
To add a UserTune listener in order to remain updated with other users UserTune, use
To link a UserTuneElement with
An example to illustrate is provided inside UserTuneElementTest inside the test package.
To publish a UserTune, please use
publishUserTune(UserTuneElement) method. This will publish the node.
To stop publishing a UserTune, please use
clearUserTune() method. This will send a disabling publish signal.
To add a UserTune listener in order to remain updated with other users UserTune, use
addUserTuneListener(PepEventListener) method.
To link a UserTuneElement with
Message, use 'message.addExtension(userTuneElement)'.
An example to illustrate is provided inside UserTuneElementTest inside the test package.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUserTuneListener(PepEventListener<UserTuneElement> listener) voidstatic UserTuneManagergetInstanceFor(org.jivesoftware.smack.XMPPConnection connection) voidpublishUserTune(UserTuneElement userTuneElement) booleanMethods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Field Details
-
USERTUNE_NODE
- See Also:
-
-
Method Details
-
getInstanceFor
public static UserTuneManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) throws org.jivesoftware.smack.SmackException.NotLoggedInException - Throws:
org.jivesoftware.smack.SmackException.NotLoggedInException
-
clearUserTune
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, InterruptedException- Throws:
org.jivesoftware.smack.SmackException.NotLoggedInExceptionPubSubException.NotALeafNodeExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionInterruptedException
-
publishUserTune
public 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, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotLoggedInExceptionPubSubException.NotALeafNodeExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionInterruptedException
-
addUserTuneListener
-
removeUserTuneListener
-