Flashlight.IsSupportedAsync Method

Definition

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

C#
public static System.Threading.Tasks.Task<bool> IsSupportedAsync ();

Returns

true when the flashlight is available, or false when not

Applies to

Product Versions
.NET MAUI 8, 9