Package com.opentok.android
Class Subscriber.Builder
java.lang.Object
com.opentok.android.SubscriberKit.Builder
com.opentok.android.Subscriber.Builder
- Enclosing class:
Subscriber
Used to build a
Subscriber object. Instantiate a Builder object using the
Subscriber.Builder#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 newSubscriberinstance based on theBuildersettings.renderer(BaseVideoRenderer renderer) Sets the video renderer to use for the subscriber.
-
Constructor Details
-
Builder
Instantiates aSubscriber.Builderobject.- Parameters:
context- The android.content.Context for the SubscriberKit object.stream- TheStreamobject corresponding to the stream you will subscribe to.
-
-
Method Details
-
renderer
Sets the video renderer to use for the subscriber. If you do not call this method, the subscriber will use the default Subscriber renderer.- Overrides:
rendererin classSubscriberKit.Builder
-
build
Returns a newSubscriberinstance based on theBuildersettings.- Overrides:
buildin classSubscriberKit.Builder
-