public static final class ShadowUsageStatsManager.UsageSessionObserver extends Object
UsageStatsManager#registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit,
PendingIntent, PendingIntent)
.Constructor | Description |
---|---|
UsageSessionObserver(int observerId,
List<String> packageNames,
Duration sessionStepDuration,
Duration thresholdDuration,
PendingIntent sessionStepTriggeredIntent,
PendingIntent sessionEndedIntent) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
getObserverId() |
|
List<String> |
getPackageNames() |
|
PendingIntent |
getSessionEndedIntent() |
|
Duration |
getSessionStepDuration() |
|
PendingIntent |
getSessionStepTriggeredIntent() |
|
Duration |
getThresholdDuration() |
|
int |
hashCode() |
public UsageSessionObserver(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent)
public int getObserverId()
public Duration getSessionStepDuration()
public Duration getThresholdDuration()
public PendingIntent getSessionStepTriggeredIntent()
public PendingIntent getSessionEndedIntent()