Share via


Flashlight.IsSupportedAsync 方法

定义

检查手电筒是否可用以及是否可以打开或关闭。

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)

返回

true 手电筒可用时,或 false 未使用手电筒时

适用于