BluetoothAdapter.ILeScanCallback.OnLeScan Method

Definition

Callback reporting an LE device found during a device scan initiated by the BluetoothAdapter#startLeScan function.

[Android.Runtime.Register("onLeScan", "(Landroid/bluetooth/BluetoothDevice;I[B)V", "GetOnLeScan_Landroid_bluetooth_BluetoothDevice_IarrayBHandler:Android.Bluetooth.BluetoothAdapter/ILeScanCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnLeScan (Android.Bluetooth.BluetoothDevice? device, int rssi, byte[]? scanRecord);
[<Android.Runtime.Register("onLeScan", "(Landroid/bluetooth/BluetoothDevice;I[B)V", "GetOnLeScan_Landroid_bluetooth_BluetoothDevice_IarrayBHandler:Android.Bluetooth.BluetoothAdapter/ILeScanCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnLeScan : Android.Bluetooth.BluetoothDevice * int * byte[] -> unit

Parameters

device
BluetoothDevice

Identifies the remote device

rssi
Int32

The RSSI value for the remote device as reported by the Bluetooth hardware. 0 if no RSSI value is available.

scanRecord
Byte[]

The content of the advertisement record offered by the remote device.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.LeScanCallback.onLeScan(android.bluetooth.BluetoothDevice, int, byte[]).

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