Lenguaje

AdvertisingSetParameters.Builder.SetSecondaryPhy Método

Definición

Sobrecargas

Nombre Description
SetSecondaryPhy(BluetoothPhy)

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

SetSecondaryPhy(ScanSettingsPhy)
Obsoletos.

SetSecondaryPhy(BluetoothPhy)

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

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

Parámetros

secondaryPhy
BluetoothPhy

El canal físico de publicidad secundaria solo puede ser uno de BluetoothDevice.PHY_LE_1M, BluetoothDevice.PHY_LE_2M o BluetoothDevice.PHY_LE_CODED.

Devoluciones

Atributos

Comentarios

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

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

Usa BluetoothAdapter.isLeCodedPhySupported y BluetoothAdapter.isLe2MPhySupported para determinar si LE Coded PHY o 2M PHY es compatible con este dispositivo.

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

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

SetSecondaryPhy(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? SetSecondaryPhy(Android.Bluetooth.LE.ScanSettingsPhy secondaryPhy);
[<System.Obsolete("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")>]
member this.SetSecondaryPhy : Android.Bluetooth.LE.ScanSettingsPhy -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

Parámetros

secondaryPhy
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