FocusSettings FocusSettings FocusSettings FocusSettings Class

Definition

Represents settings for a FocusControl object.

public : sealed class FocusSettings : IFocusSettingspublic sealed class FocusSettings : IFocusSettingsPublic NotInheritable Class FocusSettings Implements IFocusSettings// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

FocusSettings() FocusSettings() FocusSettings() FocusSettings()

Initializes a new instance of the FocusSettings class.

public : FocusSettings()public FocusSettings()Public Sub New()// You can use this method in JavaScript.

Properties

AutoFocusRange AutoFocusRange AutoFocusRange AutoFocusRange

Gets or sets a value indicating the auto focus range setting.

public : AutoFocusRange AutoFocusRange { get; set; }public AutoFocusRange AutoFocusRange { get; set; }Public ReadWrite Property AutoFocusRange As AutoFocusRange// You can use this property in JavaScript.
Value
AutoFocusRange AutoFocusRange AutoFocusRange AutoFocusRange

A value indicating the auto focus range setting.

DisableDriverFallback DisableDriverFallback DisableDriverFallback DisableDriverFallback

Gets or sets a value that indicates to the driver if it should disable determining a focus position when the focus search fails.

public : PlatForm::Boolean DisableDriverFallback { get; set; }public bool DisableDriverFallback { get; set; }Public ReadWrite Property DisableDriverFallback As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

true if the driver should not determine a focus position if the focus search fails. false if the driver should determine a focus position if the focus search fails.

Remarks

This property only impacts autofocus (single autofocus and continuous autofocus).

Distance Distance Distance Distance

Gets or sets a value indicating the manual focus distance setting.

public : IReference<ManualFocusDistance> Distance { get; set; }public Nullable<ManualFocusDistance> Distance { get; set; }Public ReadWrite Property Distance As Nullable<ManualFocusDistance>// You can use this property in JavaScript.
Value
IReference<ManualFocusDistance> Nullable<ManualFocusDistance> Nullable<ManualFocusDistance> Nullable<ManualFocusDistance>

A value indicating the manual focus distance setting.

Mode Mode Mode Mode

Gets or sets a value indicating the focus mode setting.

public : FocusMode Mode { get; set; }public FocusMode Mode { get; set; }Public ReadWrite Property Mode As FocusMode// You can use this property in JavaScript.
Value
FocusMode FocusMode FocusMode FocusMode

A value indicating the focus mode setting.

Remarks

Autofocus mode, enabled by using the FocusMode.Continuous value, is only supported while the preview stream is running. Check to make sure that the preview stream is running before turning on continuous autofocus.

Value Value Value Value

Gets or sets the focus value setting.

public : IReference<uint> Value { get; set; }public Nullable<uint> Value { get; set; }Public ReadWrite Property Value As Nullable<uint>// You can use this property in JavaScript.
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

The focus value setting.

WaitForFocus WaitForFocus WaitForFocus WaitForFocus

Gets or sets a value indicating whether the capture device should wait for focus before capturing.

public : PlatForm::Boolean WaitForFocus { get; set; }public bool WaitForFocus { get; set; }Public ReadWrite Property WaitForFocus As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

A value indicating whether the capture device should wait for focus before capturing.