ScanSettings.Builder.SetPhy(BluetoothPhy) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Can be one of BluetoothDevice.PHY_LE_1M, BluetoothDevice.PHY_LE_CODED or ScanSettings.PHY_LE_ALL_SUPPORTED
Returns
- Attributes
Remarks
Set the Physical Layer to use during this scan. This is used only if ScanSettings.Builder.setLegacy is set to false. BluetoothAdapter.isLeCodedPhySupported() may be used to check whether LE Coded phy is supported by calling BluetoothAdapter.isLeCodedPhySupported(). 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.