# inviteParticipant

fun inviteParticipant(callee: String, context: Context, requestedMediaTypes: List<MediaType> = listOf(MediaType.AUDIO, MediaType.VIDEO), joinOnAnswer: Boolean = true, onCompletion: (Either<QssInvitation.State, ConferenceError>) -> Unit)

Invites a new participant to this conference.

#### Parameters

callee

Participant who is being invited.

context

Context used to capture local media (needed in case joinOnAnswer is enabled).

requestedMediaTypes

List of media types that the caller wants the participant to share. The participant can accept them or provide another ones when joining or updating the conference. By default, the requested media types are audio and video.

joinOnAnswer

True if the user wants to join the conference when the invitation is accepted. The media types shared by the user will be the same as the requested ones. By default, the value is true.

onCompletion

Callback that will be invoked when the request is completed. It will receive the state of the invite QssInvitation.State in case of success or a ConferenceError otherwise.