
com.opentok.StreamListProperties Maven / Gradle / Ivy
/**
* OpenTok Java SDK
* Copyright (C) 2023 Vonage.
* http://www.tokbox.com
*
* Licensed under The MIT License (MIT). See LICENSE file for more information.
*/
package com.opentok;
import java.util.ArrayList;
import java.util.List;
/**
* Defines values for the properties
parameter of the
* {@link OpenTok#setStreamLayouts(String, StreamListProperties)} method.
*
* @see OpenTok#setStreamLayouts(String, StreamListProperties)
*/
public class StreamListProperties {
private List streamList;
private StreamListProperties(StreamListProperties.Builder builder) {
this.streamList = builder.streamList;
}
/**
* Use this class to create a StreamListProperties object.
*
* @see StreamListProperties
*/
public static class Builder {
private List streamList = new ArrayList<>();
/**
* Call this method to set layout class list of a stream.
*
* @param streamProps The StreamProperties object .
*
* @return The StreamListProperties.Builder object with the list of StreamProperties setting.
*/
public StreamListProperties.Builder addStreamProperties (StreamProperties streamProps) {
this.streamList.add(streamProps);
return this;
}
/**
* Builds the StreamListProperties object.
*
* @return The StreamListProperties object.
*/
public StreamListProperties build() {
return new StreamListProperties(this);
}
}
/**
* Returns the StreamProperties list.
*/
public List getStreamList() {
return streamList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy