Package com.opentok.android
Class SubscriberKit.Builder
- java.lang.Object
 - 
- com.opentok.android.SubscriberKit.Builder
 
 
- 
- Direct Known Subclasses:
 Subscriber.Builder
- Enclosing class:
 - SubscriberKit
 
public static class SubscriberKit.Builder extends java.lang.ObjectUsed to build aSubscriberKitobject. Instantiate a Builder object using theBuilder(Context context, Stream stream)constructor. Then call methods of the Builder instance to add settings for the subscriber. Then call thebuild()method, which returns aSubscriberKitobject.Use the
Session.subscribe(SubscriberKit subscriber)method to start streaming video for the subscriber. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriberKitbuild()Returns a newSubscriberKitinstance based on theBuildersettings.SubscriberKit.Builderrenderer(BaseVideoRenderer renderer)Sets the video renderer to use for the publisher. 
 - 
 
- 
- 
Constructor Detail
- 
Builder
public Builder(android.content.Context context, Stream stream)Instantiates aSubscriberKit.Builderobject.- Parameters:
 context- The android.content.Context for the SubscriberKit object.stream- TheStreamobject corresponding to the stream you will subscribe to.
 
 - 
 
- 
Method Detail
- 
renderer
public SubscriberKit.Builder renderer(BaseVideoRenderer renderer)
Sets the video renderer to use for the publisher. 
- 
build
public SubscriberKit build()
Returns a newSubscriberKitinstance based on theBuildersettings. 
 - 
 
 -