public class BeaconData extends Object
修飾子とタイプ | メソッドと説明 |
---|---|
static BeaconData |
createInstance(android.bluetooth.BluetoothDevice device,
int rssi,
byte[] scanRecord) |
static BeaconData |
createInstance(byte[] scanRecord) |
static String |
createUniqueID(android.bluetooth.BluetoothDevice device,
BeaconData beacon)
受信したBeaconを可能な限り一意に特定するIDを生成する
|
static String |
createUniqueID(String uuid,
int major,
int minor,
String address)
各種情報から一意のIDを生成する
|
byte |
getAdType() |
int |
getMajor() |
int |
getMinor() |
byte |
getTxPower() |
UUID |
getUuid() |
public UUID getUuid()
public byte getAdType()
public byte getTxPower()
public int getMajor()
public int getMinor()
public static String createUniqueID(android.bluetooth.BluetoothDevice device, BeaconData beacon)
device
- Bluetoothbeacon
- Beaconpublic static String createUniqueID(String uuid, int major, int minor, String address)
uuid
- major
- minor
- address
- public static BeaconData createInstance(byte[] scanRecord) throws Exception
Exception
public static BeaconData createInstance(android.bluetooth.BluetoothDevice device, int rssi, byte[] scanRecord) throws Exception
Exception