FileDocCategorySizeDatePackage
ActivityChangedEvent.javaAPI DocAndroid 5.1 API1808Thu Mar 12 22:22:30 GMT 2015com.android.location.provider

ActivityChangedEvent

public class ActivityChangedEvent extends Object
A class representing an event for Activity changes.

Fields Summary
private final List
mActivityRecognitionEvents
Constructors Summary
public ActivityChangedEvent(List activityRecognitionEvents)

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

        mActivityRecognitionEvents = activityRecognitionEvents;
    
Methods Summary
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();