public static final class ShadowUsageStatsManager.AppUsageObserver extends Object
App usage observer registered via UsageStatsManager.registerAppUsageObserver(int,
String[], long, TimeUnit, PendingIntent)
.
Constructor and Description |
---|
AppUsageObserver(int observerId,
Collection<String> packageNames,
long timeLimit,
TimeUnit timeUnit,
PendingIntent callbackIntent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
PendingIntent |
getCallbackIntent() |
int |
getObserverId() |
Collection<String> |
getPackageNames() |
long |
getTimeLimit() |
TimeUnit |
getTimeUnit() |
int |
hashCode() |
public AppUsageObserver(int observerId, Collection<String> packageNames, long timeLimit, TimeUnit timeUnit, PendingIntent callbackIntent)
public int getObserverId()
public Collection<String> getPackageNames()
public long getTimeLimit()
public TimeUnit getTimeUnit()
public PendingIntent getCallbackIntent()