ScanSettings.Builder.SetLegacy(Boolean) 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 whether only legacy advertisements should be returned in scan results.
[Android.Runtime.Register("setLegacy", "(Z)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.ScanSettings.Builder? SetLegacy(bool legacy);
[<Android.Runtime.Register("setLegacy", "(Z)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=26)>]
member this.SetLegacy : bool -> Android.Bluetooth.LE.ScanSettings.Builder
Parameters
- legacy
- Boolean
true if only legacy advertisements will be returned
Returns
- Attributes
Remarks
Set whether only legacy advertisements should be returned in scan results. Legacy advertisements include advertisements as specified by the Bluetooth core specification 4.2 and below. This is true by default for compatibility with older apps.
Android reference for android.bluetooth.le.ScanSettings.Builder.setLegacy.
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.