Idioma

AdvertisingSetParameters.Builder.SetPrimaryPhy Método

Definição

Sobrecargas

Nome Description
SetPrimaryPhy(BluetoothPhy)

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

SetPrimaryPhy(ScanSettingsPhy)
Obsoleto.

SetPrimaryPhy(BluetoothPhy)

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

[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

O canal físico de publicidade principal só pode ser BluetoothDevice.PHY_LE_1M ou BluetoothDevice.PHY_LE_CODED.

Retornos

Atributos

Comentários

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

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

Use BluetoothAdapter.isLeCodedPhySupported para determinar se há suporte para LE Coded PHY neste dispositivo.

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

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

SetPrimaryPhy(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? 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

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