public final class

BandwidthMeter.EventListener.EventDispatcher

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.upstream.BandwidthMeter.EventListener.EventDispatcher

Overview

Event dispatcher which allows listener registration.

Summary

Constructors
publicEventDispatcher()

Creates an event dispatcher.

Methods
public voidaddListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)

Adds a listener to the event dispatcher.

public voidbandwidthSample(int elapsedMs, long bytesTransferred, long bitrateEstimate)

public voidremoveListener(BandwidthMeter.EventListener eventListener)

Removes a listener from the event dispatcher.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public EventDispatcher()

Creates an event dispatcher.

Methods

public void addListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)

Adds a listener to the event dispatcher.

public void removeListener(BandwidthMeter.EventListener eventListener)

Removes a listener from the event dispatcher.

public void bandwidthSample(int elapsedMs, long bytesTransferred, long bitrateEstimate)