Partager via


DevicePolicyManager.GetBluetoothContactSharingDisabled(ComponentName) Méthode

Définition

Appelé par un propriétaire de profil d’un profil managé pour déterminer si les appareils Bluetooth ne peuvent pas accéder aux contacts d’entreprise ou non.

[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

Paramètres

admin
ComponentName

Auquel DeviceAdminReceiver cette requête est associée.

Retours

Attributs

Remarques

Appelé par un propriétaire de profil d’un profil managé pour déterminer si les appareils Bluetooth ne peuvent pas accéder aux contacts d’entreprise ou non.

L’administrateur de l’appareil appelant doit être un propriétaire de profil. Si ce n’est pas le cas, une exception de sécurité est levée.

Cette API fonctionne uniquement sur un profil managé.

Documentation Java pour android.app.admin.DevicePolicyManager.getBluetoothContactSharingDisabled(android.content.ComponentName).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à