Interface SubscriberKit.SubscriberListener

  • Enclosing class:
    SubscriberKit

    public static interface SubscriberKit.SubscriberListener
    Monitors state changes of a SubscriberKit instance.
    • Method Detail

      • 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.