Package com.opentok
Class StreamProperties.Builder
java.lang.Object
com.opentok.StreamProperties.Builder
- Enclosing class:
StreamProperties
Use this class to create a StreamProperties object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutClass(String layoutClass) Call this method to set an individual layout class for the stream.build()Builds the StreamProperties object.Call this method to set the ID of the stream.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Call this method to set the ID of the stream.- Parameters:
id- The stream ID.- Returns:
- The StreamProperties.Builder object with the ID setting.
-
addLayoutClass
Call this method to set an individual layout class for the stream. Call this method multiple times to set multiple classes for a stream. If you do not call this method when building the StreamProperties object, the stream's layout class list will be cleared.- Parameters:
layoutClass- A layout class string for the stream. We do not check for null, empty, or duplicate strings.- Returns:
- The StreamListProperties.Builder object.
-
build
Builds the StreamProperties object.- Returns:
- The StreamProperties object.
-