onMeetingJoined

Called when the local participant has successfully joined the meeting.

This is the first event received after calling join. At this point the meeting is fully connected and you can begin enabling media, subscribe to the topic, etc.

Code Example:


override fun onMeetingJoined() {
    Log.d("Meeting", "Joined meeting: ${meeting.meetingId}")
    // Safe to subscribe to topics now
    meeting.pubSub.subscribe("CHAT") { message ->
        Log.d("PubSub", "Received: ${message.message}")
    }
}

See also

Meeting.join()


fun onMeetingJoined(switchRoomId: String)

Called when the local participant has successfully joined a meeting after a room switch.

This overload is invoked instead of onMeetingJoined when the join was the result of a switchTo call.

Code Example:


override fun onMeetingJoined(switchRoomId: String) {
    Log.d("Meeting", "Switched to room: $switchRoomId")
}

Parameters

switchRoomId

the meeting ID of the room that was switched to

See also

Meeting.switchTo()