Skip to content

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

Constructors

CalendarProbe

CalendarProbe()

Properties

samplingConfiguration

HistoricSamplingConfiguration get samplingConfiguration
override

The sampling configuration for this probe.

Configuration is obtained in the following order:

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

Future<Measurement> getMeasurement()
override

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.