Package com.opentok.android
Interface SubscriberKit.SubscriberListener
- Enclosing class:
SubscriberKit
public static interface SubscriberKit.SubscriberListener
Monitors state changes of a
SubscriberKit
instance.-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Invoked when the instance has successfully connected to the stream and begins playing media.- Parameters:
subscriber
- The instance invoking this call.
-
onDisconnected
Invoked when the instance has successfully destroyed.- Parameters:
subscriber
- The instance invoking this call.
-
onError
Invoked when a subscriber reports an error.- Parameters:
subscriber
- The instance invoking this call.error
- The error.
-