FileDocCategorySizeDatePackage
ActivityChangedEvent.javaAPI DocAndroid 5.1 API3115Thu Mar 12 22:22:10 GMT 2015android.hardware.location

ActivityChangedEvent

public class ActivityChangedEvent extends Object implements android.os.Parcelable
A class representing an event for Activity changes.
hide

Fields Summary
private final List
mActivityRecognitionEvents
public static final Creator
CREATOR
Constructors Summary
public ActivityChangedEvent(ActivityRecognitionEvent[] activityRecognitionEvents)

        if (activityRecognitionEvents == null) {
            throw new InvalidParameterException(
                    "Parameter 'activityRecognitionEvents' must not be null.");
        }

        mActivityRecognitionEvents = Arrays.asList(activityRecognitionEvents);
    
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public java.lang.IterablegetActivityRecognitionEvents()

        return mActivityRecognitionEvents;
    
public java.lang.StringtoString()

        StringBuilder builder = new StringBuilder("[ ActivityChangedEvent:");

        for (ActivityRecognitionEvent event : mActivityRecognitionEvents) {
            builder.append("\n    ");
            builder.append(event.toString());
        }
        builder.append("\n]");

        return builder.toString();
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        ActivityRecognitionEvent[] activityRecognitionEventArray =
                mActivityRecognitionEvents.toArray(new ActivityRecognitionEvent[0]);
        parcel.writeInt(activityRecognitionEventArray.length);
        parcel.writeTypedArray(activityRecognitionEventArray, flags);