onMicRequested

fun onMicRequested(participantId: String, listener: MicRequestListener)

Called when a remote participant requests the local participant to enable their microphone.

Use the provided MicRequestListener to accept or reject the request.

Code Example:


override fun onMicRequested(participantId: String, listener: MicRequestListener) {
    // Show UI asking user to accept/reject
    listener.accept()  // or listener.reject()
}

Parameters

participantId

the ID of the participant who made the request

listener

the MicRequestListener to accept or reject the request

See also

Participant.enableMic()