语言

DevicePolicyManager.SetBluetoothContactSharingDisabled 方法

定义

由托管配置文件的配置文件所有者调用,以设置蓝牙设备是否可以访问企业联系人。

[Android.Runtime.Register("setBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetBluetoothContactSharingDisabled_Landroid_content_ComponentName_ZHandler", ApiSince=23)]
public virtual void SetBluetoothContactSharingDisabled(Android.Content.ComponentName admin, bool disabled);
[<Android.Runtime.Register("setBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetBluetoothContactSharingDisabled_Landroid_content_ComponentName_ZHandler", ApiSince=23)>]
abstract member SetBluetoothContactSharingDisabled : Android.Content.ComponentName * bool -> unit
override this.SetBluetoothContactSharingDisabled : Android.Content.ComponentName * bool -> unit

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。

disabled
Boolean

如果为 true,蓝牙设备无法访问企业联系人。

特性

注解

由托管配置文件的配置文件所有者调用,以设置蓝牙设备是否可以访问企业联系人。

呼叫设备管理员必须是配置文件所有者。 如果不是,将引发安全异常。

此 API 仅适用于托管配置文件。

Java文档android.app.admin.DevicePolicyManager.setBluetoothContactSharingDisabled(android.content.ComponentName, boolean)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于