UserData class

Class to store and share the user data for RTC and RTM operations

Constructors

UserData({required String rtmId, required int rtcId, required String? username, required int role})
UserData.fromJson(Map<String, dynamic> json)

Properties

agora Map<String, dynamic>
Properties about the Agora SDK versions this user is using
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messageType String
getter/setter pair
role int
Role of the user (broadcaster or audience)
getter/setter pair
rtcId int
ID used in the RTC (Video/Audio) connection
getter/setter pair
rtmId String
ID used in the RTM connection
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uikit Map<String, dynamic>
Agora VideoUIKit platform, framework, and version
getter/setter pair
username String?
Username to be displayed for remote users
getter/setter pair

Methods

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

Operators

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