public class IBeaconDeviceEvent extends AbstractBluetoothDeviceEvent
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<IBeaconDeviceEvent> |
CREATOR
The Parcelable constant CREATOR.
|
deviceList, eventType, PARCELABLE_DEVICE_LIST, PARCELABLE_EVENT_TYPE, PARCELABLE_TIMESTAMP, timestamp| Constructor and Description |
|---|
IBeaconDeviceEvent(EventType eventType,
BeaconRegion iBeaconRegion)
Instantiates a new iBeacon device event.
|
IBeaconDeviceEvent(EventType eventType,
IBeaconRegion iBeaconRegion,
java.util.List<IBeaconDevice> iBeaconDeviceList)
Instantiates a new iBeacon device event.
|
| Modifier and Type | Method and Description |
|---|---|
static IBeaconDeviceEvent |
createNewDiscovered(IBeaconDevice device,
IBeaconRegion region,
long timestamp)
Creates IBeaconDeviceEvent from resolved
IBeaconDevice and IBeaconRegion |
int |
describeContents() |
java.util.List<IBeaconDevice> |
getDeviceList()
Provides device list.
|
IBeaconRegion |
getRegion()
Gets iBeacon region.
|
static IBeaconDeviceEvent |
of(IBeaconDeviceEvent event,
java.util.List<IBeaconDevice> devices)
Creates IBeaconDeviceEvent from other event with provided list of devices
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
equals, getDeviceProfile, getEventType, getTimestamp, hashCodepublic static final android.os.Parcelable.Creator<IBeaconDeviceEvent> CREATOR
public IBeaconDeviceEvent(EventType eventType, BeaconRegion iBeaconRegion)
eventType - the event typeiBeaconRegion - the iBeaconRegionpublic IBeaconDeviceEvent(EventType eventType, IBeaconRegion iBeaconRegion, java.util.List<IBeaconDevice> iBeaconDeviceList)
eventType - the event typeiBeaconRegion - the iBeaconRegioniBeaconDeviceList - the iBeacon device listpublic static IBeaconDeviceEvent of(IBeaconDeviceEvent event, java.util.List<IBeaconDevice> devices)
event - the eventdevices - the devicespublic static IBeaconDeviceEvent createNewDiscovered(IBeaconDevice device, IBeaconRegion region, long timestamp)
IBeaconDevice and IBeaconRegiondevice - the real deviceregion - the regiontimestamp - the timestamppublic java.util.List<IBeaconDevice> getDeviceList()
AbstractBluetoothDeviceEventgetDeviceList in interface BluetoothDeviceEventgetDeviceList in class AbstractBluetoothDeviceEventpublic IBeaconRegion getRegion()
public int describeContents()
public void writeToParcel(android.os.Parcel dest,
int flags)