join

fun join(channel: String, fetchToken: Boolean, role: Int? = null, uid: Int? = null)

Join the Agora channel with optional token request

Parameters

channel

: Channel name to join

fetchToken

: Whether the token should be fetched before joining the channel. A token will only be fetched if a token URL is provided in AgoraSettings.

role

: AgoraClientRole to join the channel as. Default: .broadcaster

uid

: UID to be set when user joins the channel, default will be 0.


fun join(channel: String, token: String? = null, role: Int? = null, uid: Int? = null)

Join the Agora channel with optional token request

Parameters

channel

: Channel name to join

token

: token to be applied to the channel join. Leave null to use an existing token or no token.

role

: AgoraClientRole to join the channel as.

uid

: UID to be set when user joins the channel, default will be 0.