AppsSamplingPackage
The sampling package for collecting installed apps and app usage.
Register it before you deploy a protocol that uses APPS or APP_USAGE:
SamplingPackageRegistry().register(AppsSamplingPackage());
Key points:
- Both measures only work on Android. On other platforms create returns
null, so no probe runs. - Registers Apps and AppUsage for JSON deserialization.
See also AppsProbe and AppUsageProbe, which do the collection.
- Inheritance
-
- Object
- SamplingPackage
- SmartphoneSamplingPackage
- AppsSamplingPackage
Constructors
AppsSamplingPackage
Constants
APPS
Measure type for one-time collection of the apps installed on this phone.
- One-time measure.
- Uses the Smartphone primary device for data collection.
- No sampling configuration needed.
- Collected as Apps data.
APP_USAGE
Measure type for one-time collection of app usage information on apps that are installed on the phone.
- One-time measure.
- Uses the Smartphone primary device for data collection.
- Use a HistoricSamplingConfiguration for configuration. Default is one day back in time.
- Collected as AppUsage data.
Properties
samplingSchemes
The default sampling schemes for all dataTypes in this package.
All sampling packages should defined a DataTypeSamplingScheme for each data type.
Methods
create
Creates a new Probe of the specified type. Note that type should be one of the dataTypes that this package supports. Returns null if a probe cannot be created for the type.
onRegister
Callback method when this package is being registered.