Enclosing class: : SubscriberKit


public static interface SubscriberKit.SubscriberListener

Monitors state changes of a SubscriberKit instance.

Method Summary

All MethodsInstance MethodsAbstract Methods

Modifier and Type

Method

Description

void

onConnected(SubscriberKit subscriber)

Invoked when the instance has successfully connected to the stream and begins playing media.

void

onDisconnected(SubscriberKit subscriber)

Invoked when the instance has successfully destroyed.

void

onError(SubscriberKit subscriber, OpentokError error)

Invoked when a subscriber reports an error.

Method Details

onConnected

void onConnected(SubscriberKit subscriber)

Invoked when the instance has successfully connected to the stream and begins playing media.

Parameters: : subscriber - The instance invoking this call.

onDisconnected

void onDisconnected(SubscriberKit subscriber)

Invoked when the instance has successfully destroyed.

Parameters: : subscriber - The instance invoking this call.

onError

void onError(SubscriberKit subscriber, OpentokError error)

Invoked when a subscriber reports an error.

Parameters: : subscriber - The instance invoking this call. : error - The error.