public final class PresenceEvent extends EventObject
PresenceListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected S |
stanza |
source| Constructor and Description |
|---|
PresenceEvent(Object source,
Presence presence,
boolean incoming)
Constructs a presence event.
|
| Modifier and Type | Method and Description |
|---|---|
Presence |
getPresence()
Gets the presence.
|
S |
getStanza()
Gets the stanza.
|
boolean |
isIncoming()
Indicates, whether the stanza has been received (incoming) or is about to being sent (outgoing).
|
getSource, toStringprotected final S extends Stanza & ClientStreamElement stanza
public PresenceEvent(Object source, Presence presence, boolean incoming)
source - The object on which the event initially occurred.presence - The presence stanza.incoming - True, if the stanza is incoming.IllegalArgumentException - if source is null.public Presence getPresence()
public boolean isIncoming()
public S getStanza()
Copyright © 2014 XMPP.rocks. All rights reserved.