Lenguaje

AdvertisingSetParameters.Builder.SetPrimaryPhy Método

Definición

Sobrecargas

Nombre Description
SetPrimaryPhy(BluetoothPhy)

Establezca el canal físico principal usado para este conjunto de publicidad.

SetPrimaryPhy(ScanSettingsPhy)
Obsoletos.

SetPrimaryPhy(BluetoothPhy)

Establezca el canal físico principal usado para este conjunto de publicidad.

[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

Parámetros

primaryPhy
BluetoothPhy

El canal físico de publicidad principal solo puede ser BluetoothDevice.PHY_LE_1M o BluetoothDevice.PHY_LE_CODED.

Devoluciones

Atributos

Comentarios

Establezca el canal físico principal usado para este conjunto de publicidad.

Esto solo se usa si no se usa el modo heredado.

Usa BluetoothAdapter.isLeCodedPhySupported para determinar si LE Coded PHY es compatible con este dispositivo.

Referencia de Android para android.bluetooth.le.AdvertisingSetParameters.Builder.setPrimaryPhy.

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

SetPrimaryPhy(ScanSettingsPhy)

Precaución

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

Parámetros

primaryPhy
ScanSettingsPhy

Devoluciones

Atributos

Comentarios

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