TRTCSpeedTestParams class

Network speed testing parameters

You can test the network speed through the startSpeedTest: interface before the user enters the room (this API cannot be called during a call).

Constructors

TRTCSpeedTestParams({required int sdkAppId, required String userId, required String userSig, int expectedUpBandwidth = 0, int expectedDownBandwidth = 0, TRTCSpeedTestScene scene = TRTCSpeedTestScene.delayTesting})

Properties

expectedDownBandwidth ↔ int
Expected upstream bandwidth (kbps, value range: 10 to 5000, no uplink bandwidth test when it is 0).
getter/setter pair
expectedUpBandwidth ↔ int
Expected downstream bandwidth (kbps, value range: 10 to 5000, no downlink bandwidth test when it is 0).
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scene ↔ TRTCSpeedTestScene
Speed test scene.
getter/setter pair
sdkAppId ↔ int
Application identification, please refer to the relevant instructions in TRTCParams.
getter/setter pair
userId ↔ String
User identification, please refer to the relevant instructions in TRTCParams.
getter/setter pair
userSig ↔ String
User signature, please refer to the relevant instructions in TRTCParams.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert the current object to JSON.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited