Connection.VideoProvider.OnSetCamera(String) Method

Definition

Sets the camera to be used for the outgoing video.

[Android.Runtime.Register("onSetCamera", "(Ljava/lang/String;)V", "GetOnSetCamera_Ljava_lang_String_Handler", ApiSince=23)]
public abstract void OnSetCamera (string? cameraId);
[<Android.Runtime.Register("onSetCamera", "(Ljava/lang/String;)V", "GetOnSetCamera_Ljava_lang_String_Handler", ApiSince=23)>]
abstract member OnSetCamera : string -> unit

Parameters

cameraId
String

The id of the camera (use ids as reported by CameraManager#getCameraIdList()).

Attributes

Remarks

Sets the camera to be used for the outgoing video.

The VideoProvider should respond by communicating the capabilities of the chosen camera via VideoProvider#changeCameraCapabilities(VideoProfile.CameraCapabilities).

Sent from the InCallService via InCallService.VideoCall#setCamera(String).

Java documentation for android.telecom.Connection.VideoProvider.onSetCamera(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to