SubscriberKit.Builder

public static class 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.

Methods

Name Description
Builder(context, stream) Instantiates a SubscriberKit.Builder object.
build() → {SubscriberKit} Returns a new SubscriberKit instance based on the Builder settings.
renderer(renderer) → {SubscriberKit.Builder} Sets the video renderer to use for the publisher.

Builder(context, stream)

Instantiates a SubscriberKit.Builder object.

Parameters:
Name Type Description
context Context The android.content.Context for the SubscriberKit object.
stream Stream The Stream object corresponding to the stream you will subscribe to.

build() → {SubscriberKit}

Returns a new SubscriberKit instance based on the Builder settings.

Returns:

SubscriberKit

renderer(renderer) → {SubscriberKit.Builder}

Sets the video renderer to use for the publisher.

Parameters:
Name Type Description
renderer BaseVideoRenderer
Returns:

SubscriberKit.Builder