TorchControl.Enabled | enabled property

Applies to Windows and Windows Phone

Gets or sets a value that enables and disables the torch LED on the device.

Syntax


var enabled = torchControl.enabled;
torchControl.enabled = enabled;

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

true if the torch LED is enabled; otherwise, false.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.winmd

See also

TorchControl

 

 

Show:
© 2014 Microsoft