Skip to content

CommunicationSamplingPackage

The sampling package for collecting phone calls, text messages and calendar entries.

Register it before you deploy a protocol that uses its measure types:

SamplingPackageRegistry().register(CommunicationSamplingPackage());

Key points:

Inheritance

Constructors

CommunicationSamplingPackage

CommunicationSamplingPackage()

Constants

CALENDAR

String const CALENDAR

Measure type for collection of calendar entries from the calendar on the phone for a specific time period.

PHONE_LOG

String const PHONE_LOG

Measure type for collection of the phone log for a specific time period.

TEXT_MESSAGE

String const TEXT_MESSAGE

Measure type for collection of text messages (SMS) as they are received.

  • Collected as TextMessage data. Android only.
  • Event-based measure.
  • Uses the Smartphone primary device for data collection.
  • No sampling configuration needed.

TEXT_MESSAGE_LOG

String const TEXT_MESSAGE_LOG

Measure type for collection of the text message (SMS) log for a specific time period.

Properties

samplingSchemes

DataTypeSamplingSchemeMap get samplingSchemes
override

Default sampling schemes. PHONE_LOG, TEXT_MESSAGE_LOG and CALENDAR use a HistoricSamplingConfiguration of one day back and one day forward in time.

Methods

create

Probe? create(
  1. String type
)
override

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

void onRegister()
override

Callback method when this package is being registered.