Class DataChannelInitSettings

java.lang.Object
tel.schich.libdatachannel.DataChannelInitSettings

public class DataChannelInitSettings extends Object
The DataChannel initialization settings.
  • Field Details

  • Method Details

    • reliability

      public DataChannelReliability reliability()
    • withReliability

      public DataChannelInitSettings withReliability(DataChannelReliability reliability)
    • withProtocol

      public DataChannelInitSettings withProtocol(String protocol)
      (optional): a user-defined UTF-8 string representing the Data Channel protocol, empty if NULL
      Parameters:
      protocol - the protocol to indicate
      Returns:
      fluent interface
    • protocol

      public Optional<String> protocol()
    • withNegotiated

      public DataChannelInitSettings withNegotiated(boolean negotiated)
      if true, the Data Channel is assumed to be negotiated by the user and won't be negotiated by the WebRTC layer
      Parameters:
      negotiated - whether the channel is user-negotiated
      Returns:
      fluent interface
    • isNegotiated

      public boolean isNegotiated()
    • withStream

      public DataChannelInitSettings withStream(Integer stream)
      if manualStream is true, the Data Channel will use it as stream ID, else it is ignored
      Parameters:
      stream - the stream id
      Returns:
      fluent interface
    • stream

      public OptionalInt stream()