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, hashCode
public 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 BluetoothDeviceEvent
getDeviceList
in class AbstractBluetoothDeviceEvent
public int describeContents()
public void writeToParcel(Parcel dest, int flags)
public static EddystoneDeviceEvent createNewDiscovered(IEddystoneDevice resolvedDevice, IEddystoneNamespace namespace, long timestamp)
IEddystoneDevice
and IEddystoneNamespace
resolvedDevice
- 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