public static final class ShadowUsageStatsManager.AppUsageObserver extends Object
UsageStatsManager.registerAppUsageObserver(int,
String[], long, TimeUnit, PendingIntent)
.Constructor | Description |
---|---|
AppUsageObserver(int observerId,
Collection<String> packageNames,
long timeLimit,
TimeUnit timeUnit,
PendingIntent callbackIntent) |
Modifier and Type | Method | 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()