Lingua

AdvertisingSetParameters.Builder.SetPrimaryPhy Metodo

Definizione

Overload

Nome Descrizione
SetPrimaryPhy(BluetoothPhy)

Impostare il canale fisico principale utilizzato per questo set di annunci pubblicitari.

SetPrimaryPhy(ScanSettingsPhy)
Obsoleti.

SetPrimaryPhy(BluetoothPhy)

Impostare il canale fisico principale utilizzato per questo set di annunci pubblicitari.

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

Parametri

primaryPhy
BluetoothPhy

Il canale fisico pubblicitario principale può essere solo BluetoothDevice.PHY_LE_1M o BluetoothDevice.PHY_LE_CODED.

Valori restituiti

Attributi

Commenti

Impostare il canale fisico principale utilizzato per questo set di annunci pubblicitari.

Viene usato solo se non viene usata la modalità legacy.

Usare BluetoothAdapter.isLeCodedPhySupported per determinare se PHY codificato a LE è supportato in questo dispositivo.

Informazioni di riferimento su Android per android.bluetooth.le.AdvertisingSetParameters.Builder.setPrimaryPhy.

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

SetPrimaryPhy(ScanSettingsPhy)

Attenzione

This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.

[System.Obsolete("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetPrimaryPhy(Android.Bluetooth.LE.ScanSettingsPhy primaryPhy);
[<System.Obsolete("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")>]
member this.SetPrimaryPhy : Android.Bluetooth.LE.ScanSettingsPhy -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

Parametri

primaryPhy
ScanSettingsPhy

Valori restituiti

Attributi

Commenti

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