BluetoothGattServer.SetPreferredPhy Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définissez le PHY de connexion par défaut pour cette application.
[Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void SetPreferredPhy(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.BluetoothPhy txPhy, Android.Bluetooth.BluetoothPhy rxPhy, Android.Bluetooth.BluetoothPhyOption phyOptions);
[<Android.Runtime.Register("setPreferredPhy", "(Landroid/bluetooth/BluetoothDevice;III)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetPreferredPhy : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhyOption -> unit
Paramètres
- device
- BluetoothDevice
Appareil distant à envoyer cette réponse à
- txPhy
- BluetoothPhy
preferred transmitter PHY. OR au niveau du bit de l’un des BluetoothDevice#PHY_LE_1M_MASKfichiers , BluetoothDevice#PHY_LE_2M_MASKet BluetoothDevice#PHY_LE_CODED_MASK.
- rxPhy
- BluetoothPhy
récepteur préféré PHY. OR au niveau du bit de l’un des BluetoothDevice#PHY_LE_1M_MASKfichiers , BluetoothDevice#PHY_LE_2M_MASKet BluetoothDevice#PHY_LE_CODED_MASK.
- phyOptions
- BluetoothPhyOption
codage préféré à utiliser lors de la transmission sur le PHY codé LE. Peut être l’un des BluetoothDevice#PHY_OPTION_NO_PREFERRED, BluetoothDevice#PHY_OPTION_S2 ou BluetoothDevice#PHY_OPTION_S8
- Attributs
Remarques
Définissez le PHY de connexion par défaut pour cette application. Notez qu’il s’agit simplement d’une recommandation, si la modification PHY se produit dépend d’autres préférences d’applications, des fonctionnalités de contrôleur local et distant. Le contrôleur peut remplacer ces paramètres.
BluetoothGattServerCallback#onPhyUpdate sera déclenché à la suite de cet appel, même si aucune modification PHY ne se produit. Il est également déclenché lorsque l’appareil distant met à jour le PHY.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.