Idioma

AdvertisingSetParameters.Builder.SetSecondaryPhy Método

Definição

Sobrecargas

Nome Description
SetSecondaryPhy(BluetoothPhy)

Defina o canal físico secundário usado para este conjunto de anúncios.

SetSecondaryPhy(ScanSettingsPhy)
Obsoleto.

SetSecondaryPhy(BluetoothPhy)

Defina o canal físico secundário usado para este conjunto de anúncios.

[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

O canal físico de publicidade secundária pode ser apenas um dos BluetoothDevice.PHY_LE_1M, BluetoothDevice.PHY_LE_2M ou BluetoothDevice.PHY_LE_CODED.

Retornos

Atributos

Comentários

Defina o canal físico secundário usado para este conjunto de anúncios.

Isso será usado somente se o modo herdado não for usado.

Use BluetoothAdapter.isLeCodedPhySupported e BluetoothAdapter.isLe2MPhySupported para determinar se o PHY codificado le ou o PHY 2M tem suporte neste dispositivo.

Referência do Android para android.bluetooth.le.AdvertisingSetParameters.Builder.setSecondaryPhy.

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a

SetSecondaryPhy(ScanSettingsPhy)

Cuidado

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

Retornos

Atributos

Comentários

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a