Package com.bambuser.broadcaster
Interface Broadcaster.ViewerCountObserver
-
- Enclosing class:
- Broadcaster
public static interface Broadcaster.ViewerCountObserver
An interface that should be passed tosetViewerCountObserver(ViewerCountObserver)
to receive callbacks about the current and total number of viewers of the broadcast. All callbacks are done on the main UI thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCurrentViewersUpdated(long viewers)
Called when the number of viewers is updated.void
onTotalViewersUpdated(long viewers)
Called when the number of viewers is updated.
-
-
-
Method Detail
-
onCurrentViewersUpdated
void onCurrentViewersUpdated(long viewers)
Called when the number of viewers is updated.- Parameters:
viewers
- Current number of viewers of the broadcast. This is generally the most interesting number during a live broadcast.
-
onTotalViewersUpdated
void onTotalViewersUpdated(long viewers)
Called when the number of viewers is updated.- Parameters:
viewers
- Total number of viewers of the broadcast. This accumulates over time. The counted viewers are not guaranteed to be unique, but there are measures in place to exclude obvious duplicates, eg. replays from a viewer.
-
-