public static class SmotionActivityNotification.Info
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ACCURACY_HIGH
High accuracy of the activity event.
|
static int |
ACCURACY_LOW
Low accuracy of the activity event.
|
static int |
ACCURACY_MID
Medium accuracy of the activity event.
|
static int |
STATUS_RUN
User is running.
|
static int |
STATUS_STATIONARY
User is not moving.
|
static int |
STATUS_UNKNOWN
Current activity cannot be detected.
|
static int |
STATUS_VEHICLE
User is in a vehicle, such as a car.
|
static int |
STATUS_WALK
User is walking.
|
Constructor and Description |
---|
SmotionActivityNotification.Info()
Creates a SmotionActivityNotification.Info instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccuracy()
Get the accuracy of the detected activity.
|
int |
getStatus()
Get the activity status.
|
long |
getTimeStamp()
Get the timestamp in milliseconds.
|
public static final int STATUS_UNKNOWN
public static final int STATUS_STATIONARY
public static final int STATUS_WALK
public static final int STATUS_RUN
public static final int STATUS_VEHICLE
public static final int ACCURACY_LOW
public static final int ACCURACY_MID
public static final int ACCURACY_HIGH
public SmotionActivityNotification.Info()
java.lang.IllegalStateException
- Thrown if the device does not support
SmotionActivityNotification or the
SmotionActivityNotification instance is not created.public int getStatus()
public int getAccuracy()
public long getTimeStamp()