startNetworkDetection abstract method

Future<int?> startNetworkDetection({
  1. required bool isTestUplink,
  2. required int expectedUplinkBitrate,
  3. required bool isTestDownlink,
  4. required int expectedDownlinkBitrate,
})

Starts pre-call network detection.

isTestUplink: Whether to detect uplink bandwidth.

expectedUplinkBitrate: Expected uplink bandwidth in kbps within a range of {0, [100-10000]}. 0 indicates that the maximum code rate is specified by the SDK.

isTestDownlink: Whether to detect downlink bandwidth.

expectedDownlinkBitrate: Expected downlink bandwidth in kbps within a range of {0, [100-10000]}. 0 indicates that the maximum code rate is specified by the SDK.

Return value:

Notes:

Implementation

Future<int?> startNetworkDetection({
  required bool isTestUplink,
  required int expectedUplinkBitrate,
  required bool isTestDownlink,
  required int expectedDownlinkBitrate,
});