light property

SamplingSchema light
override

The sampling schema for light sampling, when power-aware sampling is enabled. See PowerAwarenessState.

Implementation

SamplingSchema get light {
  SamplingSchema light = common
    ..type = SamplingSchemaType.light
    ..name = 'Light communication sampling';
  (light.measures[PHONE_LOG] as CAMSMeasure).enabled = false;
  (light.measures[TEXT_MESSAGE_LOG] as CAMSMeasure).enabled = false;
  (light.measures[TEXT_MESSAGE] as CAMSMeasure).enabled = false;
  (light.measures[CALENDAR] as CAMSMeasure).enabled = false;
  return light;
}