Skip to content

Most visited

Recently visited

navigation
Added in API level 18

BluetoothAdapter.LeScanCallback

public static interface BluetoothAdapter.LeScanCallback

android.bluetooth.BluetoothAdapter.LeScanCallback


Callback interface used to deliver LE scan results.

See also:

Summary

Public methods

abstract void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord)

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

Public methods

onLeScan

Added in API level 18
void onLeScan (BluetoothDevice device, 
                int rssi, 
                byte[] scanRecord)

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

Parameters
device BluetoothDevice: Identifies the remote device
rssi int: 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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.