public static BeaconType getBeaconType(final BluetoothLeDevice device) {
        final int key = AdRecord.TYPE_MANUFACTURER_SPECIFIC_DATA;
        return getBeaconType(device.getAdRecordStore().getRecordDataAsString(key).getBytes());
    }
Ascertains whether a {@link BluetoothLeDevice} is an iBeacon;

@param device a {@link BluetoothLeDevice} device.
@return the {@link BeaconType}
library/src/main/java/dev/alt236/bluetoothlelib/device/beacon/BeaconUtils.java