public static class CommonEvents.Presence extends Object
Constructor and Description |
---|
Presence() |
Modifier and Type | Method and Description |
---|---|
static Optional<EventListener> |
generalLeavingListener(Identifiable identifiable)
it means the user has probably left (he could have left a while ago)
|
static Optional<EventListener> |
generalListener(Identifiable identifiable)
this event does not mean the user is able to notice anything (can be used for warm-up), it indicates
he might be.
|
static Optional<EventListener> |
leavingListener(Identifiable identifiable)
this event does indicate some kind of leaving, strict or general
|
static Optional<EventListener> |
presenceListener(Identifiable identifiable)
this event does indicate some kind of presence, strict or general.
|
static Optional<EventListener> |
strictLeavingListener(Identifiable identifiable)
it means the user has most likely left (he may come back immediately)
|
static Optional<EventListener> |
strictListener(Identifiable identifiable)
it means that the addon can guarantee that the user entered an area near izou.
|
public Presence()
public static Optional<EventListener> presenceListener(Identifiable identifiable)
Important: there is no authentication provided, if the descriptor: UNKNOWN_DESCRIPTOR is added to the event. Only if the descriptor: KNOWN_DESCRIPTOR is added, one should conclude that this is the actual user.
identifiable
- the identifiable ot associate the EventListener withpublic static Optional<EventListener> leavingListener(Identifiable identifiable)
Important: there is no authentication provided, if the descriptor: UNKNOWN_DESCRIPTOR is added to the event. Only if the descriptor: KNOWN_DESCRIPTOR is added, one should conclude that this is the actual user.
identifiable
- the identifiable ot associate the EventListener withpublic static Optional<EventListener> generalListener(Identifiable identifiable)
Important: there is no authentication provided, if the descriptor: UNKNOWN_DESCRIPTOR is added to the event. Only if the descriptor: KNOWN_DESCRIPTOR is added, one should conclude that this is the actual user.
identifiable
- the identifiable ot associate the EventListener withpublic static Optional<EventListener> generalLeavingListener(Identifiable identifiable)
identifiable
- the identifiable ot associate the EventListener withpublic static Optional<EventListener> strictListener(Identifiable identifiable)
Important: there is no authentication provided, if the descriptor: UNKNOWN_DESCRIPTOR is added to the event. Only if the descriptor: KNOWN_DESCRIPTOR is added, one should conclude that this is the actual user.
identifiable
- the identifiable ot associate the EventListener withpublic static Optional<EventListener> strictLeavingListener(Identifiable identifiable)
identifiable
- the identifiable ot associate the EventListener withCopyright © 2016. All rights reserved.