public interface PresenceEventUser extends ContextProvider
Modifier and Type | Method and Description |
---|---|
default CompletableFuture<EventModel> |
nextLeaving(boolean strict)
returns a CompletableFuture, that completes when the next specified leaving-event was fired
|
default CompletableFuture<EventModel> |
nextPresence(boolean strict,
boolean known)
returns a CompletableFuture, that completes when the next specified presence-event was fired
|
default CompletableFuture<EventModel> |
nextPresence(boolean strict,
boolean known,
boolean firstEncounter)
returns a CompletableFuture, that completes when the next specified presence-event was fired
|
default EventListenerModel |
registerLeavingCallback(java.util.function.Consumer<EventModel> callback,
boolean strict)
registers the the passed Consumer as a callback which will be called when an leaving event was fired.
|
default EventListenerModel |
registerPresenceCallback(java.util.function.Consumer<EventModel> callback,
boolean strict,
boolean known)
registers the the passed Consumer as a callback which will be called when an presence event was fired.
|
default EventListenerModel |
registerPresenceCallback(java.util.function.Consumer<EventModel> callback,
boolean strict,
boolean known,
boolean firstEncounter)
registers the the passed Consumer as a callback which will be called when an presence event was fired.
|
debug, debug, error, error, getContext
default EventListenerModel registerPresenceCallback(java.util.function.Consumer<EventModel> callback, boolean strict, boolean known)
You must unregister the returned EventListenerModel when you are not using the Callback anymore!
callback
- the callback to usestrict
- whether the callback should only be fired when the addon when the user is very likely near izouknown
- whether the callback should only be fired when the person causing the evens is very likely the userdefault EventListenerModel registerPresenceCallback(java.util.function.Consumer<EventModel> callback, boolean strict, boolean known, boolean firstEncounter)
You must unregister the returned EventListenerModel when you are not using the Callback anymore!
callback
- the callback to usestrict
- whether the callback should only be fired when the addon when the user is very likely near izouknown
- whether the callback should only be fired when the person causing the evens is very likely the userfirstEncounter
- whether the callback should only be fired when its the first encounter after the user leftdefault CompletableFuture<EventModel> nextPresence(boolean strict, boolean known)
strict
- whether it is very likely that the user is nearknown
- whether it is very likely that the person causing the event is the userdefault CompletableFuture<EventModel> nextPresence(boolean strict, boolean known, boolean firstEncounter)
strict
- whether it is very likely that the user is nearknown
- whether it is very likely that the person causing the event is the userfirstEncounter
- whether any other than the first encounter after the user left should be ignoreddefault EventListenerModel registerLeavingCallback(java.util.function.Consumer<EventModel> callback, boolean strict)
You must unregister the returned EventListenerModel when you are not using the Callback anymore!
callback
- the callback to usestrict
- whether the callback should only be fired when the addon when the user was very likely near izoudefault CompletableFuture<EventModel> nextLeaving(boolean strict)
strict
- whether it is very likely that the user was nearCopyright © 2016. All rights reserved.