public class EstimoteCloud
extends java.lang.Object
getInstance()
.
Usage:
EstimoteSDK.initialize(applicationContext, appId, appToken); EstimoteCloud.getInstance().fetchBeaconDetails(beaconMacAddress, callback);
Modifier | Constructor and Description |
---|---|
protected |
EstimoteCloud(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
fetchBeaconDetails(DeviceId deviceId,
CloudCallback<BeaconInfo> callback)
Fetches details of a beacon identified by its ID from Estimote Cloud.
|
void |
fetchBeaconDetails(MacAddress macAddress,
CloudCallback<BeaconInfo> callback)
Fetches details of a beacon identified by its MAC address from Estimote Cloud.
|
void |
fetchBeaconDetails(java.util.UUID uuid,
int major,
int minor,
CloudCallback<BeaconInfo> callback)
Fetches details of a beacon identified by its proximity UUID, major and minor numbers.
|
void |
fetchDeviceDetails(DeviceId identifier,
CloudCallback<Device> callback)
Fetches device details (like color or type, status, advertised packers) of a device from Estimote Cloud.
|
void |
fetchNearableDetails(java.lang.String identifier,
CloudCallback<NearableInfo> callback)
Fetches public details (like color or type) of a nearable from Estimote Cloud.
|
static EstimoteCloud |
getInstance()
Obtains instance of Estimote Cloud.
|
void |
updateDeviceSettings(DeviceId identifier,
Device.Settings settings,
CloudCallback<Device> callback)
Updates device settings (advertised packets, transmitPower modes, sensor settings).
|
public static EstimoteCloud getInstance()
EstimoteCloud
.public void fetchBeaconDetails(MacAddress macAddress, CloudCallback<BeaconInfo> callback)
macAddress
- Beacon's MAC address.callback
- Callback to be invoked after details are fetched.public void fetchBeaconDetails(DeviceId deviceId, CloudCallback<BeaconInfo> callback)
deviceId
- Device identifier.callback
- Callback to be invoked after details are fetched.public void fetchBeaconDetails(java.util.UUID uuid, int major, int minor, CloudCallback<BeaconInfo> callback)
uuid
- Beacon's UUID.major
- Beacon's major number.minor
- Beacon's minor number.callback
- Callback to be invoked after details are fetched.public void fetchNearableDetails(java.lang.String identifier, CloudCallback<NearableInfo> callback)
identifier
- Nearable's identifier (Nearable.identifier
).callback
- Callback to be invoked after details are fetched.public void fetchDeviceDetails(DeviceId identifier, CloudCallback<Device> callback)
identifier
- Device identifiercallback
- Callback to be invoked after details are fetched.public void updateDeviceSettings(DeviceId identifier, Device.Settings settings, CloudCallback<Device> callback)
identifier
- Device identifier.settings
- Device settings.callback
- Callback to be invoked after updated details are fetched.