==================================================
这个类表示 Android 设备检测到的单个硬件 iBeacon 设备
iBeacon由基于字段的三部分标识符组成
proximityUUID - 一个字符串UUID通常标识一系列信标的所有者
major - 一个16位整数,指示一组iBeacons
minor - 一个16位整数标识一个单一的iBeacon
iBeacon 发送包里包含以上这三个标识符,以及 iBeacon 的蓝牙的信息强度 RSSI
这个类只能从一个 BLE 包和 RSSI 测量值中被实例化,然后解析出三部分标识符以及校准的发射功率,然后使用测量的RSSI和校准的
发射功率做一个粗略的距离测量,并将其分组成一个更可靠的距离
iBeacon
IBeacon() - 类 的构造器com.tool.bluetooth.detector.entity.
IBeacon
IBeacon(String, int, int, int, int) - 类 的构造器com.tool.bluetooth.detector.entity.IBeacon
IBeacon(IBeacon) - 类 的构造器com.tool.bluetooth.detector.entity.IBeacon
isDebug() - 类 中的方法com.tool.bluetooth.detector.config.BluetoothFilter
isOpenBluetooth() - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
蓝牙是否开启
isOpenGPS(Context) - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
判断是否启动 GPS 定位服务
isSupportBluetooth() - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
是否支持蓝牙
M
- major - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
一个16位整数,指示一组 iBeacons
- minor - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
一个16位整数标识一个单一的 iBeacon
O
- onDeviceStatus(int) - 接口 中的方法com.tool.bluetooth.detector.BluetoothStatusListener
-
设备状态/蓝牙状态,当前设备状态发生变化时回调此方法
- onLeScan(BluetoothDevice, int, byte[]) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
-
- onReceive(Context, Intent) - 类 中的方法com.tool.bluetooth.detector.receiver.BluetoothReceiver
-
- onScan(BluetoothDevice, int, byte[]) - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorCallBack
-
Callback reporting an LE device found during a device scan initiated
by the BluetoothAdapter.startLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback) function.
- onScanStatus(int) - 接口 中的方法com.tool.bluetooth.detector.BluetoothStatusListener
-
扫描状态,当前扫描状态发生变化时回调此方法
- openBluetooth() - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
-
强制开启蓝牙
- openBluetooth(Activity, int) - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
-
开启蓝牙,如果强制打开蓝牙失败,请再次调用这个方法转到系统设置页面开启
- openGps(Activity, int) - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
-
打开 Gps 系统设置页面
- openPermissionsSetting(Activity, int) - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
-
打开系统权限设备页面
P
- proximity - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
当前 iBeacon 的距离,只可能有如下四个值
- PROXIMITY_FAR - 类 中的静态变量com.tool.bluetooth.detector.entity.IBeacon
-
距离超过四米远
- PROXIMITY_IMMEDIATE - 类 中的静态变量com.tool.bluetooth.detector.entity.IBeacon
-
距离不到半米远
- PROXIMITY_NEAR - 类 中的静态变量com.tool.bluetooth.detector.entity.IBeacon
-
距离超过半米远,但不到四米远
- PROXIMITY_UNKNOWN - 类 中的静态变量com.tool.bluetooth.detector.entity.IBeacon
-
RSSI值不佳或测量的发射功率,无法估算距离
- proximityUuid - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
一个16字节的 UUID 通常代表拥有 iBeacon 的所有者
Example: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0
R
- REQUEST_CODE_BLUETOOTH - 类 中的静态变量com.tool.bluetooth.detector.utils.BluetoothUtils
-
- REQUEST_CODE_GPS - 类 中的静态变量com.tool.bluetooth.detector.utils.BluetoothUtils
-
- REQUEST_CODE_PERMISSIONS - 类 中的静态变量com.tool.bluetooth.detector.utils.BluetoothUtils
-
- rssi - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
测量到的蓝牙设备的信号强度
- runningAverageRssi - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
如果有多个RSSI样本可用,则这是运行平均值
S
- SCAN_STATUS_START - 接口 中的静态变量com.tool.bluetooth.detector.BluetoothStatusListener
-
正在扫描状态
- SCAN_STATUS_STOP - 接口 中的静态变量com.tool.bluetooth.detector.BluetoothStatusListener
-
停止扫描状态
- serviceUUIDs(String[]) - 类 中的方法com.tool.bluetooth.detector.config.BluetoothFilter.Builder
-
- setBluetoothDevice(BluetoothDevice) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setDeviceName(String) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setLastUpdatedTimeMillis(long) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setRssi(int) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setScanRecord(byte[]) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- startScan(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
-
- startScan(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
-
- startScan(BluetoothDetectorCallBack) - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
-
- startScan(BluetoothFilter, BluetoothDetectorCallBack) - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
-
- startScanInternal(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- startScanInternal(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
-
- startScanInternal(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothLollipop
-
- startScanInternal(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothMarshmallow
-
- startScanInternal(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothNougat
-
- stopScan(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
-
- stopScan(BluetoothDetectorCallBack) - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
-
- stopScanInternal(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- stopScanInternal(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
-
- stopScanInternal(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothLollipop
-
- stopScanInternal(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothMarshmallow
-
- stopScanInternal(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothNougat
-
T
- toString() - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- toString() - 类 中的方法com.tool.bluetooth.detector.entity.IBeacon
-
- txPower - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
RSSI 中 iBeacon 的校准测量发射功率,该值帮助帮助估计距离
U
- updateDevice(BluetoothDevice, int, byte[], long) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
更新当前设备的信息
W
- writeToParcel(Parcel, int) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- writeToParcel(Parcel, int) - 类 中的方法com.tool.bluetooth.detector.entity.IBeacon
-
A B C D E G H I M O P R S T U W