Package org.jivesoftware.smackx.usertune
Class UserTuneManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.usertune.UserTuneManager
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addUserTuneListener
(PepEventListener<UserTuneElement> listener) void
static UserTuneManager
getInstanceFor
(XMPPConnection connection) void
publishUserTune
(UserTuneElement userTuneElement) boolean
Methods 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(XMPPConnection connection) throws SmackException.NotLoggedInException -
clearUserTune
-
publishUserTune
-
addUserTuneListener
-
removeUserTuneListener
-