public class RecordUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
RecordUtils.RestartCompletedListener |
限定符和类型 | 字段和说明 |
---|---|
static java.util.Comparator<Beacon> |
BEACON_MAJOR_COMPARATOR |
static java.util.Comparator<Beacon> |
BEACON_RSSI_COMPARATOR |
构造器和说明 |
---|
RecordUtils() |
限定符和类型 | 方法和说明 |
---|---|
static Beacon |
beaconFromLeScan(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord) |
static int |
byte2Int(byte[] bytes) |
static void |
clearCacheBeaconExtra() |
static double |
computeAccuracy(Beacon beacon) |
static java.lang.String |
formatProximityUUID(java.lang.String proximityUUID) |
static java.lang.String |
getScanUUID(byte[] scanRecord) |
static byte[] |
inttobyte(int value) |
static byte[] |
inttobyte4(int value) |
static boolean |
isAvailableUUID(java.lang.String uuid) |
static void |
restartBluetooth(android.content.Context context,
RecordUtils.RestartCompletedListener listener) |
static java.lang.String |
scanRecordtoString(byte[] scanRecord) |
static Beacon |
simpleBeaconFromLeScan(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord) |
static byte[] |
string2HexStr(java.lang.String string) |
static int |
unsignedByteToInt(byte value) |
public static java.util.Comparator<Beacon> BEACON_MAJOR_COMPARATOR
public static java.util.Comparator<Beacon> BEACON_RSSI_COMPARATOR
public static void clearCacheBeaconExtra()
public static Beacon beaconFromLeScan(android.bluetooth.BluetoothDevice device, int rssi, byte[] scanRecord)
public static Beacon simpleBeaconFromLeScan(android.bluetooth.BluetoothDevice device, int rssi, byte[] scanRecord)
public static java.lang.String formatProximityUUID(java.lang.String proximityUUID)
public static boolean isAvailableUUID(java.lang.String uuid)
public static double computeAccuracy(Beacon beacon)
public static byte[] inttobyte(int value)
public static byte[] inttobyte4(int value)
public static byte[] string2HexStr(java.lang.String string)
public static void restartBluetooth(android.content.Context context, RecordUtils.RestartCompletedListener listener)
public static int unsignedByteToInt(byte value)
public static int byte2Int(byte[] bytes)
public static java.lang.String scanRecordtoString(byte[] scanRecord)
public static java.lang.String getScanUUID(byte[] scanRecord)