Package 

Interface NonBeaconLeScanCallback


  • @WorkerThread() 
    public interface NonBeaconLeScanCallback
    
                        

    Allows an implementation to see non-Beacon BLE devices as they are scanned.

    To use:
     public class BeaconReferenceApplication extends Application implements ..., NonBeaconLeScanCallback { public void onCreate() { super.onCreate(); BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this); ... beaconManager.setNonBeaconLeScanCallback(this); ... } {@literal @}Override public void onNonBeaconLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) { ... } } 
    • Method Summary

      Modifier and Type Method Description
      abstract void onNonBeaconLeScan(BluetoothDevice device, int rssi, Array<byte> scanRecord) NOTE: This method is NOT called on the main UI thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onNonBeaconLeScan

         abstract void onNonBeaconLeScan(BluetoothDevice device, int rssi, Array<byte> scanRecord)

        NOTE: This method is NOT called on the main UI thread.

        Parameters:
        device - Identifies the remote device
        rssi - The RSSI value for the remote device as reported by the Bluetooth hardware.
        scanRecord - The content of the advertisement record offered by the remote device.