ActivityRecognitionEventpublic class ActivityRecognitionEvent extends Object implements android.os.ParcelableA class that represents an Activity Recognition Event. |
Fields Summary |
---|
private final String | mActivity | private final int | mEventType | private final long | mTimestampNs | public static final Creator | CREATOR |
Constructors Summary |
---|
public ActivityRecognitionEvent(String activity, int eventType, long timestampNs)
mActivity = activity;
mEventType = eventType;
mTimestampNs = timestampNs;
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | getActivity()
return mActivity;
| public int | getEventType()
return mEventType;
| public long | getTimestampNs()
return mTimestampNs;
| public java.lang.String | toString()
return String.format(
"Activity='%s', EventType=%s, TimestampNs=%s",
mActivity,
mEventType,
mTimestampNs);
| public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeString(mActivity);
parcel.writeInt(mEventType);
parcel.writeLong(mTimestampNs);
|
|