Camera.Parameters.SetRecordingHint(Boolean) 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 recording mode hint.
[Android.Runtime.Register("setRecordingHint", "(Z)V", "GetSetRecordingHint_ZHandler")]
[System.Obsolete("deprecated")]
public virtual void SetRecordingHint (bool hint);
[<Android.Runtime.Register("setRecordingHint", "(Z)V", "GetSetRecordingHint_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetRecordingHint : bool -> unit
override this.SetRecordingHint : bool -> unit
Parameters
- hint
- Boolean
true if the apps intend to record videos using
android.media.MediaRecorder
.
- Attributes
Remarks
Sets recording mode hint. This tells the camera that the intent of the application is to record videos android.media.MediaRecorder#start()
, not to take still pictures #takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback, Camera.PictureCallback)
. Using this hint can allow MediaRecorder.start() to start faster or with fewer glitches on output. This should be called before starting preview for the best result, but can be changed while the preview is active. The default value is false.
The app can still call takePicture() when the hint is true or call MediaRecorder.start() when the hint is false. But the performance may be worse.
Java documentation for android.hardware.Camera.Parameters.setRecordingHint(boolean)
.
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.