samplingSchemes property
Default samplings schema for:
- PHONE_LOG - a period one day back in time and one day into the future
- TEXT_MESSAGE_LOG - a period one day back in time and one day into the future
- CALENDAR - a period one day back in time and one day into the future
Implementation
@override
DataTypeSamplingSchemeMap get samplingSchemes =>
DataTypeSamplingSchemeMap.from([
DataTypeSamplingScheme(
CamsDataTypeMetaData(
type: PHONE_LOG,
displayName: "Phone Log",
timeType: DataTimeType.TIME_SPAN,
dataEventType: DataEventType.ONE_TIME,
permissions: [Permission.phone],
),
HistoricSamplingConfiguration(
past: const Duration(days: 1),
future: const Duration(days: 1),
)),
DataTypeSamplingScheme(
CamsDataTypeMetaData(
type: TEXT_MESSAGE_LOG,
displayName: "Text Message Log",
timeType: DataTimeType.TIME_SPAN,
dataEventType: DataEventType.ONE_TIME,
permissions: [Permission.sms],
),
HistoricSamplingConfiguration(
past: const Duration(days: 1),
future: const Duration(days: 1),
)),
DataTypeSamplingScheme(CamsDataTypeMetaData(
type: TEXT_MESSAGE,
displayName: "Text Messages",
timeType: DataTimeType.POINT,
dataEventType: DataEventType.EVENT,
permissions: [Permission.phone],
)),
DataTypeSamplingScheme(
CamsDataTypeMetaData(
type: CALENDAR,
displayName: "Calendar Entries",
timeType: DataTimeType.TIME_SPAN,
dataEventType: DataEventType.ONE_TIME,
permissions: [Permission.calendarFullAccess],
),
HistoricSamplingConfiguration(
past: const Duration(days: 1),
future: const Duration(days: 1),
)),
]);