AgoraConnectionData class Null safety

Constructors

AgoraConnectionData({required String appId, required String channelName, int? uid, String? tokenUrl, String? tempToken, AreaCode areaCode = AreaCode.GLOB})

Properties

appId String
The App ID issued to you by Agora. See How to get the App ID. Only users in apps with the same App ID can join the same channel and communicate with each other.
final
areaCode AreaCode
(Optional) The region for connection. This advanced feature applies to scenarios that have regional restrictions.
final
channelName String
Specifies the channel to join
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tempToken String?
(Optional) Token value generated from the Agora dashboard.
final
tokenUrl String?
(Optional) Link to the deployed token server. The UIKit automatically generates the token after a fixed interval. Have a look at this guide to learn how to set up your token server
final
uid int?
(Optional) The user ID. A 32-bit unsigned integer with a value ranging from 1 to (232-1). This parameter must be unique. If uid is not assigned (or set as 0), the SDK assigns a uid and reports it in the onJoinChannelSuccess callback.
final

Methods

copyWith({String? appId, String? channelName, int? uid, String? tempToken, String? tokenUrl, AreaCode? areaCode}) AgoraConnectionData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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