public class Utils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
Utils.Proximity |
static interface |
Utils.RestartCompletedListener |
构造器和说明 |
---|
Utils() |
限定符和类型 | 方法和说明 |
---|---|
static Beacon |
beaconFromLeScan(BluetoothDevice device,
int rssi,
byte[] scanRecord) |
static double |
computeAccuracy(Beacon beacon) |
static Beacon |
fromScanData(BluetoothDevice device,
int rssi,
byte[] scanData) |
static boolean |
isBeaconInRegion(Beacon beacon,
Region region) |
static int |
normalize16BitUnsignedInt(int value) |
static java.lang.String |
normalizeProximityUUID(java.lang.String proximityUUID) |
static int |
parseInt(java.lang.String numberAsString) |
static void |
restartBluetooth(Context context,
Utils.RestartCompletedListener listener) |
public static Beacon beaconFromLeScan(BluetoothDevice device, int rssi, byte[] scanRecord)
public static Beacon fromScanData(BluetoothDevice device, int rssi, byte[] scanData)
public static java.lang.String normalizeProximityUUID(java.lang.String proximityUUID)
public static double computeAccuracy(Beacon beacon)
public static int parseInt(java.lang.String numberAsString)
public static int normalize16BitUnsignedInt(int value)
public static void restartBluetooth(Context context, Utils.RestartCompletedListener listener)