@ThreadSafe public static class CastEvent.SimpleCastEventListenerList extends CastEvent.AbstractCastEventListenerList
CastEvent.CastEventListenerList
implementation that invokes CastEvent.CastEventListeners from the thread
that calls fire(CastEvent).filters, filtersLock, listeners, remoteName| Constructor and Description |
|---|
SimpleCastEventListenerList(String remoteName)
Creates a new instance with the specified remote name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fire(CastEvent<?> event)
Fires the specified event on all the registered
CastEvent.CastEventListeners. |
public SimpleCastEventListenerList(@Nonnull String remoteName)
remoteName - the identifier for the cast device used in logging.IllegalArgumentException - If remoteName is
null.public void fire(@Nullable CastEvent<?> event)
CastEvent.CastEventListenerListCastEvent.CastEventListeners.event - the CastEvent to fire.Copyright © 2022. All rights reserved.