ScanSettings.Builder.SetScanType(Int32) 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.
Sets the scan type.
[Android.Runtime.Register("setScanType", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=36)]
public Android.Bluetooth.LE.ScanSettings.Builder SetScanType(int scanType);
[<Android.Runtime.Register("setScanType", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=36)>]
member this.SetScanType : int -> Android.Bluetooth.LE.ScanSettings.Builder
Parameters
- scanType
- Int32
Either ScanSettings.SCAN_TYPE_ACTIVE or ScanSettings.SCAN_TYPE_PASSIVE. If scan type is ScanSettings.SCAN_TYPE_PASSIVE, scan results are delivered immediately upon receiving an advertising report, without waiting for scan responses. Value is one of the following: ScanSettings.SCAN_TYPE_UNKNOWN; ScanSettings.SCAN_TYPE_PASSIVE; ScanSettings.SCAN_TYPE_ACTIVE
Returns
- Attributes
Remarks
Sets the scan type. Either ScanSettings.SCAN_TYPE_ACTIVE or ScanSettings.SCAN_TYPE_PASSIVE can be set. The default value is ScanSettings.SCAN_TYPE_ACTIVE.
Android reference for android.bluetooth.le.ScanSettings.Builder.setScanType.
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.