Udostępnij za pośrednictwem


DevicePolicyManager.GetBluetoothContactSharingDisabled(ComponentName) Method

Definition

Called by a profile owner of a managed profile to determine whether or not Bluetooth devices cannot access enterprise contacts.

[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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

Attributes

Remarks

Called by a profile owner of a managed profile to determine whether or not Bluetooth devices cannot 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.getBluetoothContactSharingDisabled(android.content.ComponentName).

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