Lingua

ScanSettings.Builder.SetPhy(BluetoothPhy) Metodo

Definizione

Impostare il livello fisico da usare durante l'analisi.

[Android.Runtime.Register("setPhy", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.ScanSettings.Builder? SetPhy(Android.Bluetooth.BluetoothPhy phy);
[<Android.Runtime.Register("setPhy", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=26)>]
member this.SetPhy : Android.Bluetooth.BluetoothPhy -> Android.Bluetooth.LE.ScanSettings.Builder

Parametri

phy
BluetoothPhy

Può essere uno dei BluetoothDevice.PHY_LE_1M, BluetoothDevice.PHY_LE_CODED o ScanSettings.PHY_LE_ALL_SUPPORTED

Valori restituiti

Attributi

Commenti

Impostare il livello fisico da usare durante l'analisi. Viene usato solo se ScanSettings.Builder.setLegacy è impostato su false. BluetoothAdapter.isLeCodedPhySupported() può essere usato per verificare se il codice LE Coded phy è supportato chiamando BluetoothAdapter.isLeCodedPhySupported(). Se si seleziona un fisico non supportato, si verifica un errore durante l'avvio dell'analisi.

Informazioni di riferimento su Android per android.bluetooth.le.ScanSettings.Builder.setPhy.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a