語言

DevicePolicyManager.GetBluetoothContactSharingDisabled(ComponentName) 方法

定義

由受管理設定檔的設定檔案擁有者呼叫,以判斷藍牙裝置是否無法存取企業聯絡人。

[Android.Runtime.Register("getBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;)Z", "GetGetBluetoothContactSharingDisabled_Landroid_content_ComponentName_Handler", ApiSince=23)]
public virtual bool GetBluetoothContactSharingDisabled(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;)Z", "GetGetBluetoothContactSharingDisabled_Landroid_content_ComponentName_Handler", ApiSince=23)>]
abstract member GetBluetoothContactSharingDisabled : Android.Content.ComponentName -> bool
override this.GetBluetoothContactSharingDisabled : Android.Content.ComponentName -> bool

參數

admin
ComponentName

這個請求就是和這個 DeviceAdminReceiver 問題有關的。

傳回

屬性

備註

由受管理設定檔的設定檔案擁有者呼叫,以判斷藍牙裝置是否無法存取企業聯絡人。

通話裝置管理員必須是設定檔擁有者。 若不符合,則會拋出安全例外。

此 API 僅適用於受管理型態。

Java 文件 android.app.admin.DevicePolicyManager.getBluetoothContactSharingDisabled(android.content.ComponentName)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於