Class DataTrackOptions.Builder

java.lang.Object
com.twilio.video.DataTrackOptions.Builder
Enclosing class:
DataTrackOptions

public static class DataTrackOptions.Builder extends Object
Build new DataTrackOptions.

All methods are optional.

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • ordered

      @NonNull public DataTrackOptions.Builder ordered(boolean ordered)
      Ordered transmission of messages. Default is true.
    • maxPacketLifeTime

      @NonNull public DataTrackOptions.Builder maxPacketLifeTime(int maxPacketLifeTime)
      Maximum retransmit time in milliseconds.
    • maxRetransmits

      @NonNull public DataTrackOptions.Builder maxRetransmits(int maxRetransmits)
      Maximum number of retransmitted messages.
    • name

      @NonNull public DataTrackOptions.Builder name(@Nullable String name)
      Data track name.
    • build

      @NonNull public DataTrackOptions build()
      Builds the data track options.

      Max packet life time and max retransmits are mutually exclusive. This means that only one of these values can be set to a non default value at a time otherwise a IllegalStateException occurs.