Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Flashlight.IsSupportedAsync Method

Definition

Namespace:
Microsoft.Maui.Devices
Assembly:
Microsoft.Maui.Essentials.dll
Source:
Flashlight.shared.cs
Source:
Flashlight.shared.cs
Source:
Flashlight.shared.cs
Source:
Flashlight.shared.cs

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.

Checks if the flashlight is available and can be turned on or off.

public:
 static System::Threading::Tasks::Task<bool> ^ IsSupportedAsync();
public static System.Threading.Tasks.Task<bool> IsSupportedAsync();
static member IsSupportedAsync : unit -> System.Threading.Tasks.Task<bool>
Public Shared Function IsSupportedAsync () As Task(Of Boolean)

Returns

true when the flashlight is available, or false when not

Applies to


Feedback

Was this page helpful?