BluetoothGatt.SetPreferredPhy Método

Definición

Establezca la conexión preferida PHY para esta aplicación.

[Android.Runtime.Register("setPreferredPhy", "(III)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void SetPreferredPhy(Android.Bluetooth.BluetoothPhy txPhy, Android.Bluetooth.BluetoothPhy rxPhy, Android.Bluetooth.BluetoothPhyOption phyOptions);
[<Android.Runtime.Register("setPreferredPhy", "(III)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.SetPreferredPhy : Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhy * Android.Bluetooth.BluetoothPhyOption -> unit

Parámetros

txPhy
BluetoothPhy

transmisor preferido PHY. OR bit a bit de cualquiera de BluetoothDevice#PHY_LE_1M_MASK, BluetoothDevice#PHY_LE_2M_MASKy BluetoothDevice#PHY_LE_CODED_MASK.

rxPhy
BluetoothPhy

receptor preferido PHY. OR bit a bit de cualquiera de BluetoothDevice#PHY_LE_1M_MASK, BluetoothDevice#PHY_LE_2M_MASKy BluetoothDevice#PHY_LE_CODED_MASK.

phyOptions
BluetoothPhyOption

se prefiere la codificación que se usará al transmitir en la PHY codificada por LE. Puede ser uno de BluetoothDevice#PHY_OPTION_NO_PREFERRED, BluetoothDevice#PHY_OPTION_S2 o BluetoothDevice#PHY_OPTION_S8

Atributos

Comentarios

Establezca la conexión preferida PHY para esta aplicación. Tenga en cuenta que esto es solo una recomendación, si el cambio de PHY dependerá de otras preferencias de aplicaciones, funcionalidades de controlador remoto y local. El controlador puede invalidar esta configuración.

BluetoothGattCallback#onPhyUpdate se desencadenará como resultado de esta llamada, incluso si no se produce ningún cambio en PHY. También se desencadena cuando el dispositivo remoto actualiza la PHY.

Java documentación para android.bluetooth.BluetoothGatt.setPreferredPhy(int, int, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a