public class SKScreenStatusData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
static int |
SCREEN_OFF |
static int |
SCREEN_ON |
static int |
SCREEN_UNKNOWN |
protected int |
status |
sensorType, timestamp
Constructor and Description |
---|
SKScreenStatusData(long timestamp,
int status)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataInCSV()
Get Screen Status sensor data in CSV format
|
int |
getStatus()
Get screen status
|
java.lang.String |
getStatusString()
Get screen status as a string
|
getSensorType, getTimestamp, toString
public static final int SCREEN_OFF
public static final int SCREEN_ON
public static final int SCREEN_UNKNOWN
protected final int status
public SKScreenStatusData(long timestamp, int status)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)status
- Screen statuspublic java.lang.String getDataInCSV()
public int getStatus()
public java.lang.String getStatusString()