Package com.opentok

Class StreamProperties.Builder

java.lang.Object
com.opentok.StreamProperties.Builder
Enclosing class:
StreamProperties

public static class StreamProperties.Builder extends Object
Use this class to create a StreamProperties object.
See Also:
  • 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

      public StreamProperties.Builder addLayoutClass(String layoutClass)
      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

      public StreamProperties build()
      Builds the StreamProperties object.
      Returns:
      The StreamProperties object.