# updateMedia

fun updateMedia(context: Context, mediaTypes: List<MediaType>, onCompletion: (ConferenceError?) -> Unit)

Updates the media types shared by the user, overridden the current ones.

#### Parameters

context

Context used to capture local media.

mediaTypes

List of new media types to be shared.

onCompletion

Callback that will be invoked when the request is completed. It will receive a ConferenceError if any error occurs. In case of success, error will be null.