Package rocks.xmpp.extensions.invisible
Class InvisibilityManager
- java.lang.Object
-
- rocks.xmpp.core.session.Manager
-
- rocks.xmpp.extensions.invisible.InvisibilityManager
-
public final class InvisibilityManager extends Manager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncResult<Void>
becomeInvisible()
Becomes invisible.AsyncResult<Void>
becomeVisible()
Becomes visible.boolean
isInvisible()
Indicates, whether the current session is invisible.AsyncResult<Boolean>
isSupported()
Checks, whether invisibility is supported by the server.-
Methods inherited from class rocks.xmpp.core.session.Manager
isEnabled, setEnabled
-
-
-
-
Method Detail
-
becomeInvisible
public AsyncResult<Void> becomeInvisible()
Becomes invisible.- Returns:
- The async result.
-
becomeVisible
public AsyncResult<Void> becomeVisible()
Becomes visible.- Returns:
- The async result.
-
isInvisible
public boolean isInvisible()
Indicates, whether the current session is invisible.- Returns:
- True, of the current session is invisible.
-
isSupported
public AsyncResult<Boolean> isSupported()
Checks, whether invisibility is supported by the server.- Returns:
- The async result with true, if invisibility is supported.
-
-