HMSNetworkQuality class

100ms HMSNetworkQuality

When creating an HMSConfig object to request a preview, set the captureNetworkQualityInPreview to true to measure the user's downlink network quality.

When available, the information will be returned in onPeerUpdate of the HMSPreviewListener and HMSUpdateListener in the update type HMSPeerUpdate.networkQualityUpdated. It can be retrieved out of the HMSPeer object's networkQuality property.

Network Quality varies between -1 to 5.

-1 -> Test timeout.

0 -> Very bad network or network check failure.

1 -> Poor network.

2 -> Bad network.

3 -> Average.

4 -> Good.

5 -> Best.

Refer Network Quality guide here

Constructors

HMSNetworkQuality({required int quality})
HMSNetworkQuality.fromMap(Map map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
quality int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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