Language

ScanSettings.Builder.SetPhy(BluetoothPhy) Method

Definition

Set the Physical Layer to use during this scan.

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

Parameters

phy
BluetoothPhy

The physical layer: Le1m, LeCoded, or the value of AllSupported cast to BluetoothPhy.

Returns

This builder instance.

Attributes

Remarks

Set the physical layer to use during this scan. This is used only if SetLegacy(Boolean) is set to false. Use IsLeCodedPhySupported to check whether LE Coded PHY is supported. Selecting an unsupported PHY will result in failure to start scan.

Android reference for android.bluetooth.le.ScanSettings.Builder.setPhy.

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