Interface Listener
-
public interface ListenerImplement this class to supply a listener to the EventBus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPriority()All Listeners have a priority.voidlisten(Event e)The receiver of the Event at the time the Event is published
-
-
-
Method Detail
-
getPriority
int getPriority()
All Listeners have a priority. Events will be published to Listeners in priority order, but within the same priority the order of dispatch is not defined. The extremes of high and low values are System priorities, which cannot be used by 3rd parties You may not use Integer.MIN_VALUE or Integer.MAX_VALUE- Returns:
- the priority of this Listener
-
listen
void listen(Event e)
The receiver of the Event at the time the Event is published- Parameters:
e- the Event being listened to
-
-