public class EddystoneDeviceEvent extends AbstractBluetoothDeviceEvent
EddystoneScanContext
has been included to the global ScanContext
and the ProximityManager scans within this global Scan Context.| Modifier and Type | Field and Description |
|---|---|
static <any> |
CREATOR
The parcelable constant CREATOR.
|
deviceList, eventType, PARCELABLE_DEVICE_LIST, PARCELABLE_EVENT_TYPE, PARCELABLE_TIMESTAMP, timestamp| Constructor and Description |
|---|
EddystoneDeviceEvent(EventType eventType,
IEddystoneNamespace iEddystoneNamespace,
java.util.ArrayList<IEddystoneDevice> deviceList)
Instantiates a new Eddystone device event.
|
| Modifier and Type | Method and Description |
|---|---|
static EddystoneDeviceEvent |
createNewDiscovered(IEddystoneDevice resolvedDevice,
IEddystoneNamespace namespace,
long timestamp)
Creates EddystoneDeviceEvent from
IEddystoneDevice and IEddystoneNamespace |
int |
describeContents() |
java.util.List<IEddystoneDevice> |
getDeviceList()
Gets device list
|
IEddystoneNamespace |
getNamespace()
Provides namespace that the Eddystone devices list belongs to.
|
static EddystoneDeviceEvent |
of(EddystoneDeviceEvent eddystoneDeviceEvent,
java.util.List<IEddystoneDevice> eddystoneDevices)
Creates EddystoneDeviceEvent from other event with provided device list
|
void |
writeToParcel(Parcel dest,
int flags) |
equals, getDeviceProfile, getEventType, getTimestamp, hashCodepublic EddystoneDeviceEvent(EventType eventType, IEddystoneNamespace iEddystoneNamespace, java.util.ArrayList<IEddystoneDevice> deviceList)
eventType - the event typeiEddystoneNamespace - the i eddystone namespacedeviceList - the device listpublic IEddystoneNamespace getNamespace()
public java.util.List<IEddystoneDevice> getDeviceList()
getDeviceList in interface BluetoothDeviceEventgetDeviceList in class AbstractBluetoothDeviceEventpublic int describeContents()
public void writeToParcel(Parcel dest,
int flags)
public static EddystoneDeviceEvent createNewDiscovered(IEddystoneDevice resolvedDevice, IEddystoneNamespace namespace, long timestamp)
IEddystoneDevice and IEddystoneNamespaceresolvedDevice - the real device resolved through cloudnamespace - the namespacetimestamp - the timestamppublic static EddystoneDeviceEvent of(EddystoneDeviceEvent eddystoneDeviceEvent, java.util.List<IEddystoneDevice> eddystoneDevices)
eddystoneDeviceEvent - the eventeddystoneDevices - the devices