Share via


Camera.Parameters.FocusMode Property

Definition

Caution

deprecated

Gets the current focus mode setting. -or- Sets the focus mode.

[System.Obsolete("deprecated")]
public virtual string? FocusMode { [Android.Runtime.Register("getFocusMode", "()Ljava/lang/String;", "GetGetFocusModeHandler")] get; [Android.Runtime.Register("setFocusMode", "(Ljava/lang/String;)V", "GetSetFocusMode_Ljava_lang_String_Handler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getFocusMode", "()Ljava/lang/String;", "GetGetFocusModeHandler")>]
[<set: Android.Runtime.Register("setFocusMode", "(Ljava/lang/String;)V", "GetSetFocusMode_Ljava_lang_String_Handler")>]
member this.FocusMode : string with get, set

Property Value

current focus mode. This method will always return a non-null value. Applications should call #autoFocus(AutoFocusCallback) to start the focus if focus mode is FOCUS_MODE_AUTO or FOCUS_MODE_MACRO.

Attributes

Remarks

Property getter documentation:

Gets the current focus mode setting.

Java documentation for android.hardware.Camera.Parameters.getFocusMode().

Property setter documentation:

Sets the focus mode.

Java documentation for android.hardware.Camera.Parameters.setFocusMode(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

See also