com.opentok.android.SubscriberKit.Builder
Direct Known Subclasses:
: Subscriber.Builder
Enclosing class:
: SubscriberKit
public static class SubscriberKit.Builder extends Object
Used to build a SubscriberKit object. Instantiate a Builder object using the
Builder(Context context, Stream stream)
constructor. Then call methods of the Builder instance to add settings for the subscriber.
Then call the build() method, which returns a SubscriberKit object.
Use the Session.subscribe(SubscriberKit subscriber) method to start streaming video
for the subscriber.
Constructor Summary
Constructors
Constructor
Description
Builder(android.content.Context context, Stream stream)
Instantiates a SubscriberKit.Builder object.
Method Summary
All MethodsInstance MethodsConcrete Methods
Modifier and Type
Method
Description
SubscriberKit
build()
Returns a new SubscriberKit instance based on the Builder
settings.
SubscriberKit.Builder
renderer(BaseVideoRenderer renderer)
Sets the video renderer to use for the publisher.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Details
Builder
public Builder(android.content.Context context, Stream stream)
Instantiates a SubscriberKit.Builder object.
Parameters:
: context - The android.content.Context for the SubscriberKit object.
: stream - The Stream object corresponding to the stream you will
subscribe to.
Method Details
renderer
public SubscriberKit.Builder renderer(BaseVideoRenderer renderer)
Sets the video renderer to use for the publisher.
build
public SubscriberKit build()
Returns a new SubscriberKit instance based on the Builder
settings.