FileDocCategorySizeDatePackage
ActivityRecognitionEvent.javaAPI DocAndroid 5.1 API2470Thu Mar 12 22:22:10 GMT 2015android.hardware.location

ActivityRecognitionEvent

public class ActivityRecognitionEvent extends Object implements android.os.Parcelable
A class that represents an Activity Recognition Event.
hide

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 intdescribeContents()


    
       
        return 0;
    
public java.lang.StringgetActivity()

        return mActivity;
    
public intgetEventType()

        return mEventType;
    
public longgetTimestampNs()

        return mTimestampNs;
    
public java.lang.StringtoString()

        return String.format(
                "Activity='%s', EventType=%s, TimestampNs=%s",
                mActivity,
                mEventType,
                mTimestampNs);
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeString(mActivity);
        parcel.writeInt(mEventType);
        parcel.writeLong(mTimestampNs);