public class IBeaconDeviceEvent extends AbstractBluetoothDeviceEvent
IBeaconScanContext
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 |
---|
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() |
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(Parcel dest,
int flags) |
equals, getDeviceProfile, getEventType, getTimestamp, hashCode
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 IBeaconRegion
device
- the real deviceregion
- the regiontimestamp
- the timestamppublic java.util.List<IBeaconDevice> getDeviceList()
getDeviceList
in interface BluetoothDeviceEvent
getDeviceList
in class AbstractBluetoothDeviceEvent
public IBeaconRegion getRegion()
public int describeContents()
public void writeToParcel(Parcel dest, int flags)