Sampling packages
A sampling package is the unit that adds measures to CAMS. Each one declares the measure types it supports and creates a probe for each. CAMS ships two, and the rest are separate packages you add to your app.
Where in the repo
Section titled “Where in the repo”| File | What is in it |
|---|---|
domain/services/sampling_package.dart |
The SamplingPackage interface |
runtime/sampling_package_registry.dart |
The registry |
infrastructure/sampling_packages/device/ |
Built-in: phone information and events |
infrastructure/sampling_packages/sensors/ |
Built-in: motion, light, steps |
How sampling packages workFrom a measure type to a probe
Available packagesMeasure types, platforms and packages
Create your own packageFive steps from data class to published package