@ThreadSafe public static interface CastEvent.CastEventListenerList
List of CastEvent.CastEventListeners.boolean add(@Nullable CastEvent.CastEventListener listener, CastEvent.CastEventType... eventTypes)
CastEvent.CastEventListener to this
CastEvent.CastEventListenerList for the specified
CastEvent.CastEventTypes.listener - the CastEvent.CastEventListener to register.eventTypes - the event type(s) to listen to.true if a change was made to the listener list,
false if this registration deadn't lead to any
change.int addAll(@Nullable Collection<CastEvent.CastEventListener> collection, CastEvent.CastEventType... eventTypes)
CastEvent.CastEventListeners to this
CastEvent.CastEventListenerList for the specified
CastEvent.CastEventTypes.collection - the Collection of
CastEvent.CastEventListeners.eventTypes - the CastEvent.CastEventTypes to subscribe to or none
to subscribe to all events.boolean remove(@Nullable CastEvent.CastEventListener listener)
CastEvent.CastEventListener from this
CastEvent.CastEventListenerList.listener - the CastEvent.CastEventListener to unregister.true if a change was made to the listener list,
false if this registration deadn't lead to any
change.boolean removeAll(@Nullable Collection<CastEvent.CastEventListener> collection)
CastEvent.CastEventListeners from this
CastEvent.CastEventListenerList.collection - the Collection of
CastEvent.CastEventListeners.true if a change was made to the listener list,
false if this registration deadn't lead to any
change.boolean contains(@Nullable CastEvent.CastEventListener listener)
CastEvent.CastEventListener is already
registered with this CastEvent.CastEventListenerList.listener - the CastEvent.CastEventListener to check.true if the specified CastEvent.CastEventListener is
registered, false otherwise.void clear()
CastEvent.CastEventListeners from this
CastEvent.CastEventListenerList.boolean isEmpty()
true if this CastEvent.CastEventListenerList has no
registered CastEvent.CastEventListeners, false
otherwise.int size()
CastEvent.CastEventListeners.Iterable<CastEvent.CastEventListener> listeners()
Iterable captured at the
time this method is called.Iterator<CastEvent.CastEventListener> iterator()
Iterator captured at the
time this method is called.void fire(@Nullable CastEvent<?> event)
CastEvent.CastEventListeners.event - the CastEvent to fire.Copyright © 2022. All rights reserved.