Class 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:
    XEP-0118: User Tune
    • Method Detail

      • 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,
                                  java.lang.InterruptedException
        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
      • 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,
                                    java.lang.InterruptedException
        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