BluetoothAdapter.StartLeScan Method

Definition

Overloads

StartLeScan(BluetoothAdapter+ILeScanCallback)
Obsolete.

Starts a scan for Bluetooth LE devices.

StartLeScan(UUID[], BluetoothAdapter+ILeScanCallback)
Obsolete.

Starts a scan for Bluetooth LE devices.

StartLeScan(BluetoothAdapter+ILeScanCallback)

Caution

deprecated

Starts a scan for Bluetooth LE devices.

[Android.Runtime.Register("startLeScan", "(Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")]
[System.Obsolete("deprecated")]
public bool StartLeScan (Android.Bluetooth.BluetoothAdapter.ILeScanCallback? callback);
[<Android.Runtime.Register("startLeScan", "(Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
[<System.Obsolete("deprecated")>]
member this.StartLeScan : Android.Bluetooth.BluetoothAdapter.ILeScanCallback -> bool

Parameters

callback
BluetoothAdapter.ILeScanCallback

the callback LE scan results are delivered

Returns

true, if the scan was started successfully

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.startLeScan(android.bluetooth.LeScanCallback).

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

StartLeScan(UUID[], BluetoothAdapter+ILeScanCallback)

Caution

deprecated

Starts a scan for Bluetooth LE devices.

[Android.Runtime.Register("startLeScan", "([Ljava/util/UUID;Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")]
[System.Obsolete("deprecated")]
public bool StartLeScan (Java.Util.UUID[]? serviceUuids, Android.Bluetooth.BluetoothAdapter.ILeScanCallback? callback);
[<Android.Runtime.Register("startLeScan", "([Ljava/util/UUID;Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
[<System.Obsolete("deprecated")>]
member this.StartLeScan : Java.Util.UUID[] * Android.Bluetooth.BluetoothAdapter.ILeScanCallback -> bool

Parameters

serviceUuids
UUID[]

Array of services to look for

callback
BluetoothAdapter.ILeScanCallback

the callback LE scan results are delivered

Returns

true, if the scan was started successfully

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.startLeScan(android.bluetooth.LeScanCallback).

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