Package org.robolectric.shadows
Class ShadowUsageStatsManager.UsageSessionObserver
java.lang.Object
org.robolectric.shadows.ShadowUsageStatsManager.UsageSessionObserver
- Enclosing class:
- ShadowUsageStatsManager
Usage session observer registered via
UsageStatsManager#registerUsageSessionObserver(int, String[], long, TimeUnit, long, TimeUnit, PendingIntent, PendingIntent)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent) abstract int
abstract com.google.common.collect.ImmutableList<String>
abstract PendingIntent
abstract Duration
abstract PendingIntent
abstract Duration
-
Constructor Details
-
UsageSessionObserver
public UsageSessionObserver()
-
-
Method Details
-
build
public static ShadowUsageStatsManager.UsageSessionObserver build(int observerId, List<String> packageNames, Duration sessionStepDuration, Duration thresholdDuration, PendingIntent sessionStepTriggeredIntent, PendingIntent sessionEndedIntent) -
getObserverId
public abstract int getObserverId() -
getPackageNames
-
getSessionStepDuration
-
getThresholdDuration
-
getSessionStepTriggeredIntent
-
getSessionEndedIntent
-