Language

AdvertisingSetParameters.Builder.SetPrimaryPhy Method

Definition

Overloads

Name Description
SetPrimaryPhy(BluetoothPhy)

Set the primary physical channel used for this advertising set.

SetPrimaryPhy(ScanSettingsPhy)
Obsolete.

SetPrimaryPhy(BluetoothPhy)

Set the primary physical channel used for this advertising set.

[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

Parameters

primaryPhy
BluetoothPhy

Primary advertising physical channel, can only be BluetoothDevice.PHY_LE_1M or BluetoothDevice.PHY_LE_CODED.

Returns

Attributes

Remarks

Set the primary physical channel used for this advertising set.

This is used only if legacy mode is not used.

Use BluetoothAdapter.isLeCodedPhySupported to determine if LE Coded PHY is supported on this device.

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

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

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

Parameters

primaryPhy
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