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.Object
Used to build aSubscriberKit
object. 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 aSubscriberKit
object.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 SubscriberKit
build()
Returns a newSubscriberKit
instance based on theBuilder
settings.SubscriberKit.Builder
renderer(BaseVideoRenderer renderer)
Sets the video renderer to use for the publisher.
-
-
-
Constructor Detail
-
Builder
public Builder(android.content.Context context, Stream stream)
Instantiates aSubscriberKit.Builder
object.- Parameters:
context
- The android.content.Context for the SubscriberKit object.stream
- TheStream
object 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 newSubscriberKit
instance based on theBuilder
settings.
-
-