Package com.opentok.android
Class SubscriberKit.Builder
java.lang.Object
com.opentok.android.SubscriberKit.Builder
- Direct Known Subclasses:
Subscriber.Builder
- Enclosing class:
SubscriberKit
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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newSubscriberKit
instance based on theBuilder
settings.renderer
(BaseVideoRenderer renderer) Sets the video renderer to use for the publisher.
-
Constructor Details
-
Builder
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 Details
-
renderer
Sets the video renderer to use for the publisher. -
build
Returns a newSubscriberKit
instance based on theBuilder
settings.
-