@WorkerThread
public interface NonBeaconLeScanCallback
public class BeaconReferenceApplication extends Application implements ..., NonBeaconLeScanCallback {
public void onCreate() {
super.onCreate();
BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
...
beaconManager.setNonBeaconLeScanCallback(this);
...
}
@Override
public void onNonBeaconLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {
...
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
onNonBeaconLeScan(BluetoothDevice device,
int rssi,
byte[] scanRecord)
NOTE: This method is NOT called on the main UI thread.
|
void onNonBeaconLeScan(BluetoothDevice device, int rssi, byte[] scanRecord)
device - Identifies the remote devicerssi - The RSSI value for the remote device as reported by the
Bluetooth hardware. 0 if no RSSI value is available.scanRecord - The content of the advertisement record offered by
the remote device.