Share via


DevicePolicyManager.SetBluetoothContactSharingDisabled Method

Definition

Called by a profile owner of a managed profile to set whether bluetooth devices can access enterprise contacts.

[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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

disabled
Boolean

If true, bluetooth devices cannot access enterprise contacts.

Attributes

Remarks

Called by a profile owner of a managed profile to set whether bluetooth devices can access enterprise contacts.

The calling device admin must be a profile owner. If it is not, a security exception will be thrown.

This API works on managed profile only.

Java documentation for android.app.admin.DevicePolicyManager.setBluetoothContactSharingDisabled(android.content.ComponentName, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to