public class Event
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Builder
Builder class that is used to build
Event instances from values configured by the setters. |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Event> |
CREATOR
Parcelable CREATOR constant.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Event(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
static Event.Builder |
builder() |
int |
describeContents() |
int |
getBatteryLevel() |
java.lang.String |
getDeviceAddress() |
double |
getRssi() |
long |
getTimestamp() |
EventType |
getType() |
java.lang.String |
getUniqueId() |
static Event |
of(RemoteBluetoothDevice device,
EventType eventType)
Creates concrete event object based on device and event type.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Event> CREATOR
public static Event.Builder builder()
public static Event of(RemoteBluetoothDevice device, EventType eventType)
device - the bluetooth device.eventType - the event type.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic EventType getType()
public long getTimestamp()
public java.lang.String getUniqueId()
public java.lang.String getDeviceAddress()
public int getBatteryLevel()
public double getRssi()