Language

AdvertisingSetParameters.Builder.SetSecondaryPhy Method

Definition

Overloads

Name Description
SetSecondaryPhy(BluetoothPhy)

Set the secondary physical channel used for this advertising set.

SetSecondaryPhy(ScanSettingsPhy)
Obsolete.

SetSecondaryPhy(BluetoothPhy)

Set the secondary physical channel used for this advertising set.

[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

Parameters

secondaryPhy
BluetoothPhy

Secondary advertising physical channel, can only be one of BluetoothDevice.PHY_LE_1M, BluetoothDevice.PHY_LE_2M or BluetoothDevice.PHY_LE_CODED.

Returns

Attributes

Remarks

Set the secondary physical channel used for this advertising set.

This is used only if legacy mode is not used.

Use BluetoothAdapter.isLeCodedPhySupported and BluetoothAdapter.isLe2MPhySupported to determine if LE Coded PHY or 2M PHY is supported on this device.

Android reference for android.bluetooth.le.AdvertisingSetParameters.Builder.setSecondaryPhy.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetSecondaryPhy(ScanSettingsPhy)

Caution

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

Parameters

secondaryPhy
ScanSettingsPhy

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to