Language

ScanSettings.Builder.SetScanType(Int32) Method

Definition

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

The integer value of Active or Passive. With passive scanning, reports do not wait for scan responses.

Returns

This builder instance.

Attributes

Remarks

Sets the scan type. Use the integer value of Active or Passive. The default is 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.

Applies to