onUserJoined property
Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) joins the channel.
In a communication channel, this callback indicates that a remote user joins the channel. The SDK also triggers this callback to report the existing users in the channel when a user joins the channel. In a live-broadcast channel, this callback indicates that a host joins the channel. The SDK also triggers this callback to report the existing hosts in the channel when a host joins the channel. Agora recommends limiting the number of co-hosts to 32, with a maximum of 17 video hosts.
connection
The connection information. See RtcConnection.remoteUid
The ID of the user or host who joins the channel.elapsed
Time delay (ms) from the local user calling joinChannel until this callback is triggered.
Implementation
final void Function(RtcConnection connection, int remoteUid, int elapsed)?
onUserJoined;