MediaRecorder.SetCamera(Camera) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Sets a android.hardware.Camera
to use for recording.
[Android.Runtime.Register("setCamera", "(Landroid/hardware/Camera;)V", "GetSetCamera_Landroid_hardware_Camera_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetCamera (Android.Hardware.Camera? c);
[<Android.Runtime.Register("setCamera", "(Landroid/hardware/Camera;)V", "GetSetCamera_Landroid_hardware_Camera_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetCamera : Android.Hardware.Camera -> unit
override this.SetCamera : Android.Hardware.Camera -> unit
Parameters
- c
- Camera
the Camera to use for recording
- Attributes
Remarks
Sets a android.hardware.Camera
to use for recording.
Use this function to switch quickly between preview and capture mode without a teardown of the camera object. android.hardware.Camera#unlock()
should be called before this. Must call before #prepare
.
This member is deprecated. Use #getSurface
and the android.hardware.camera2
API instead.
Java documentation for android.media.MediaRecorder.setCamera(android.hardware.Camera)
.
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.