==================================================
这个类表示 Android 设备检测到的单个硬件 iBeacon 设备
iBeacon由基于字段的三部分标识符组成
proximityUUID - 一个字符串UUID通常标识一系列信标的所有者
major - 一个16位整数,相当于群组号,同一个组里Beacon有相同的Major
minor - 一个16位整数,相当于识别群组里单个的Beacon
iBeacon 发送包里包含以上这三个标识符,以及 iBeacon 的蓝牙的信息强度 RSSI
UUID + Major + Minor 就构成了一个 iBeacon 的识别号
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 定位服务
isScanning() - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
isScanning() - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
是否正在扫描设备
isScanning - 类 中的变量com.tool.bluetooth.detector.core.BluetoothScanner
isScanning() - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
isScanning() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
isSupportBluetooth() - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
是否支持蓝牙
ITimer - com.tool.bluetooth.detector.utils.timer中的接口
M
- major - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
一个16位整数,指示一组 iBeacons
- minor - 类 中的变量com.tool.bluetooth.detector.entity.IBeacon
-
一个16位整数标识一个单一的 iBeacon
N
- newInstance() - 类 中的静态方法com.tool.bluetooth.detector.core.BluetoothScanner
-
由于各 Android 版本对蓝牙处理不同,这里做一个 Android 版本差异化处理
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) - 类 中的静态方法com.tool.bluetooth.detector.utils.BluetoothUtils
-
打开系统权限设备页面
P
- progress(long, long) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager.TimerListener
-
- 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
-
- reset() - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
重置定时任务
- reset() - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- 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
-
停止扫描状态
- schedule() - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
- schedule(long) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
开始执行定时任务
- schedule(long, long) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
开始执行定时任务
- schedule(long, long, int) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
开始执行定时任务
循环总时间 = 间隔时间 * 次数
- schedule() - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- schedule(long) - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- schedule(long, long) - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- schedule(long, long, int) - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- scheduleAtFrequency(int) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
开始执行定时任务
- scheduleAtFrequency(int) - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- setBluetoothDevice(BluetoothDevice) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setCallBack(BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- setDeviceAddresses(List<String>) - 类 中的方法com.tool.bluetooth.detector.config.BluetoothFilter.Builder
-
- setDeviceName(String) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setDeviceNames(List<String>) - 类 中的方法com.tool.bluetooth.detector.config.BluetoothFilter.Builder
-
- setFilter(BluetoothFilter) - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- setLastUpdatedTimeMillis(long) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setListener(TimerManager.TimerListener) - 接口 中的方法com.tool.bluetooth.detector.utils.timer.ITimer
-
- setListener(TimerManager.TimerListener) - 类 中的方法com.tool.bluetooth.detector.utils.timer.TimerManager
-
- setRssi(int) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setScanRecord(byte[]) - 类 中的方法com.tool.bluetooth.detector.entity.BeaconDevice
-
- setServiceUUIDs(List<String>) - 类 中的方法com.tool.bluetooth.detector.config.BluetoothFilter.Builder
-
- startScan(BluetoothFilter, BluetoothDetectorCallBack) - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
-
- startScan(BluetoothFilter, BluetoothDetectorCallBack) - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
-
- startScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- startScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
-
- startScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothLollipop
-
- startScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothMarshmallow
-
- startScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothNougat
-
- stopScan() - 类 中的方法com.tool.bluetooth.detector.BluetoothDetector
-
- stopScan() - 接口 中的方法com.tool.bluetooth.detector.BluetoothDetectorHandler
-
- stopScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.BluetoothScanner
-
- stopScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothJellyBean
-
- stopScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothLollipop
-
- stopScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothMarshmallow
-
- stopScanInternal() - 类 中的方法com.tool.bluetooth.detector.core.version.BluetoothNougat
-
T
- TimerManager - com.tool.bluetooth.detector.utils.timer中的类
-
定时器
- TimerManager.TimerListener - com.tool.bluetooth.detector.utils.timer中的接口
-
- 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 N O P R S T U W