DevicePolicyManager.GetCameraDisabled(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
確認該裝置的攝影機是否已被該使用者停用,無論是由呼叫的管理員(如指定)或所有管理員所停用。
[Android.Runtime.Register("getCameraDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCameraDisabled_Landroid_content_ComponentName_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CAMERA")]
public virtual bool GetCameraDisabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getCameraDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCameraDisabled_Landroid_content_ComponentName_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CAMERA")>]
abstract member GetCameraDisabled : Android.Content.ComponentName -> bool
override this.GetCameraDisabled : Android.Content.ComponentName -> bool
參數
- admin
- ComponentName
要檢查管理員元件的名稱,或 null 是檢查是否有管理員停用攝影機
傳回
- 屬性
備註
確認該裝置的攝影機是否已被該使用者停用,無論是由呼叫的管理員(如指定)或所有管理員所停用。
此方法可在實例中呼叫 DevicePolicyManager ,回傳 #getParentProfileInstance(ComponentName),呼叫者必須是組織擁有的管理設定檔的擁有者。
Java 文件 android.app.admin.DevicePolicyManager.getCameraDisabled(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。