CalendarProbe
Collects the events in all calendars on the phone as Calendar data.
Used for the CommunicationSamplingPackage.CALENDAR measure. Asks for calendar permission the first time, if the user has not been asked yet. If the calendars cannot be read, the measurement holds an Error.
- Inheritance
-
- Object
- AbstractExecutor<
Measure> - Probe
- MeasurementProbe
- CalendarProbe
Constructors
CalendarProbe
Properties
samplingConfiguration
The sampling configuration for this probe.
Configuration is obtained in the following order:
- from the Measure.overrideSamplingConfiguration
- from the DeviceConfiguration.defaultSamplingConfiguration of the deployment
- from the DeviceConfiguration.dataTypeSamplingSchemes of the static device configuration
- from the SamplingPackage.samplingSchemes of the sampling packages
Returns null in case no configuration is found.
See also the section on Sampling schemes and configurations in the CARP Core Framework. In addition to CARP Core, CARP Mobile Sensing also supports sampling schemes in the sampling packages, which are used as the 4th possible configuration in the list above.
Methods
getMeasurement
Gets a Calendar measurement for all events in all calendars.
The period starts at the last time this probe collected data or, the first time, at HistoricSamplingConfiguration.past before now. The period ends now.