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 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 Details

  • 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.NotLoggedInException
      PubSubException.NotALeafNodeException
      org.jivesoftware.smack.SmackException.NoResponseException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      InterruptedException
    • 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.NotLoggedInException
      PubSubException.NotALeafNodeException
      org.jivesoftware.smack.SmackException.NoResponseException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      InterruptedException
    • addUserTuneListener

      public boolean addUserTuneListener(PepEventListener<UserTuneElement> listener)
    • removeUserTuneListener

      public boolean removeUserTuneListener(PepEventListener<UserTuneElement> listener)