Uses of Class
org.jivesoftware.smack.packet.Presence
-
Packages that use Presence Package Description org.jivesoftware.smack Core classes of the Smack API.org.jivesoftware.smack.filter AllowsStanzaCollector
andStanzaListener
instances to filter for stanzas with particular attributes.org.jivesoftware.smack.packet XML stanzas and extension elements that are part of the XMPP protocol.org.jivesoftware.smack.roster Smacks API for Rosters.org.jivesoftware.smack.util Utility classes.org.jivesoftware.smackx.iot.provisioning Smack's API for XMPP IoT.org.jivesoftware.smackx.last_interaction.element Element classes for XEP-0319: Last User Interaction in Presence.org.jivesoftware.smackx.muc Classes and Interfaces that implement Multi-User Chat (MUC) as defined in XEP-0045.org.jivesoftware.smackx.workgroup.agent TODO describe me. -
-
Uses of Presence in org.jivesoftware.smack
Methods in org.jivesoftware.smack with parameters of type Presence Modifier and Type Method Description void
AbstractXMPPConnection. disconnect(Presence unavailablePresence)
Closes the connection.void
PresenceListener. processPresence(Presence presence)
Method parameters in org.jivesoftware.smack with type arguments of type Presence Modifier and Type Method Description void
AbstractXMPPConnection. addPresenceInterceptor(Consumer<PresenceBuilder> presenceInterceptor, Predicate<Presence> presenceFilter)
void
XMPPConnection. addPresenceInterceptor(Consumer<PresenceBuilder> presenceInterceptor, Predicate<Presence> presenceFilter)
Registers a stanza interceptor with this connection. -
Uses of Presence in org.jivesoftware.smack.filter
Methods in org.jivesoftware.smack.filter with parameters of type Presence Modifier and Type Method Description protected boolean
PresenceTypeFilter. acceptSpecific(Presence presence)
-
Uses of Presence in org.jivesoftware.smack.packet
Methods in org.jivesoftware.smack.packet that return Presence Modifier and Type Method Description Presence
PresenceBuilder. build()
Presence
Presence. clone()
Deprecated.useasBuilder()
instead.Presence
Presence. cloneWithNewId()
Deprecated.useasBuilder(XMPPConnection)
orasBuilder(String)
instead.Methods in org.jivesoftware.smack.packet with parameters of type Presence Modifier and Type Method Description static PresenceBuilder
StanzaBuilder. buildPresenceFrom(Presence presence, java.lang.String stanzaId)
static PresenceBuilder
StanzaBuilder. buildPresenceFrom(Presence presence, StanzaIdSource stanzaIdSource)
PresenceBuilder
StanzaFactory. buildPresenceStanzaFrom(Presence presence)
Constructors in org.jivesoftware.smack.packet with parameters of type Presence Constructor Description Presence(Presence other)
Copy constructor. -
Uses of Presence in org.jivesoftware.smack.roster
Methods in org.jivesoftware.smack.roster that return Presence Modifier and Type Method Description Presence
Roster. getPresence(BareJid jid)
Returns the presence info for a particular user.Presence
Roster. getPresenceResource(FullJid userWithResource)
Returns the presence info for a particular user's resource, or unavailable presence if the user is offline or if no presence information is available, such as when you are not subscribed to the user's presence updates.Methods in org.jivesoftware.smack.roster that return types with arguments of type Presence Modifier and Type Method Description java.util.List<Presence>
Roster. getAllPresences(BareJid bareJid)
Returns a List of Presence objects for all of a user's current presences if no presence information is available, such as when you are not subscribed to the user's presence updates.java.util.List<Presence>
Roster. getAvailablePresences(BareJid bareJid)
Returns a List of all available Presence Objects for the given bare JID.java.util.List<Presence>
Roster. getPresences(BareJid jid)
Returns a List of Presence objects for all of a user's current presences or an unavailable presence if the user is unavailable (offline) or if no presence information is available, such as when you are not subscribed to the user's presence updates.Methods in org.jivesoftware.smack.roster with parameters of type Presence Modifier and Type Method Description void
AbstractPresenceEventListener. presenceAvailable(FullJid address, Presence availablePresence)
void
PresenceEventListener. presenceAvailable(FullJid address, Presence availablePresence)
void
AbstractRosterListener. presenceChanged(Presence presence)
void
RosterListener. presenceChanged(Presence presence)
Called when the presence of a roster entry is changed.void
AbstractPresenceEventListener. presenceError(Jid address, Presence errorPresence)
void
PresenceEventListener. presenceError(Jid address, Presence errorPresence)
void
AbstractPresenceEventListener. presenceSubscribed(BareJid address, Presence subscribedPresence)
void
PresenceEventListener. presenceSubscribed(BareJid address, Presence subscribedPresence)
void
AbstractPresenceEventListener. presenceUnavailable(FullJid address, Presence presence)
void
PresenceEventListener. presenceUnavailable(FullJid address, Presence presence)
void
AbstractPresenceEventListener. presenceUnsubscribed(BareJid address, Presence unsubscribedPresence)
void
PresenceEventListener. presenceUnsubscribed(BareJid address, Presence unsubscribedPresence)
SubscribeListener.SubscribeAnswer
SubscribeListener. processSubscribe(Jid from, Presence subscribeRequest)
Handle incoming presence subscription requests. -
Uses of Presence in org.jivesoftware.smack.util
Methods in org.jivesoftware.smack.util that return Presence Modifier and Type Method Description static Presence
PacketParserUtils. parsePresence(XmlPullParser parser)
static Presence
PacketParserUtils. parsePresence(XmlPullParser parser, XmlEnvironment outerXmlEnvironment)
Parses a presence packet. -
Uses of Presence in org.jivesoftware.smackx.iot.provisioning
Methods in org.jivesoftware.smackx.iot.provisioning with parameters of type Presence Modifier and Type Method Description void
BecameFriendListener. becameFriend(BareJid jid, Presence presence)
void
WasUnfriendedListener. wasUnfriendedListener(BareJid jid, Presence presence)
-
Uses of Presence in org.jivesoftware.smackx.last_interaction.element
Methods in org.jivesoftware.smackx.last_interaction.element with parameters of type Presence Modifier and Type Method Description static void
IdleElement. addToPresence(Presence presence)
Add an Idle element with current date to the presence.static IdleElement
IdleElement. fromPresence(Presence presence)
Return the IdleElement from a presence. -
Uses of Presence in org.jivesoftware.smackx.muc
Methods in org.jivesoftware.smackx.muc that return Presence Modifier and Type Method Description Presence
MultiUserChat. getOccupantPresence(EntityFullJid user)
Returns the presence info for a particular user, ornull
if the user is not in the room.Presence
MultiUserChat. leave()
Leave the chat room.Presence
MultiUserChat. leaveSync()
Deprecated.useMultiUserChat.leave()
instead.Methods in org.jivesoftware.smackx.muc with parameters of type Presence Modifier and Type Method Description default void
UserStatusListener. removed(MUCUser mucUser, Presence presence)
Called when a user is involuntarily removed from the room.MucEnterConfiguration.Builder
MucEnterConfiguration.Builder. withPresence(Presence presence)
Deprecated.useMucEnterConfiguration.Builder.withPresence(Consumer)
instead. -
Uses of Presence in org.jivesoftware.smackx.workgroup.agent
Methods in org.jivesoftware.smackx.workgroup.agent that return Presence Modifier and Type Method Description Presence
AgentRoster. getPresence(Jid user)
Returns the presence info for a particular agent, ornull
if the agent is unavailable (offline) or if no presence information is available.Methods in org.jivesoftware.smackx.workgroup.agent with parameters of type Presence Modifier and Type Method Description void
AgentRosterListener. presenceChanged(Presence presence)
-