This page summarises the public API. The generated Dart API documentation on
pub.dev has the full detail.
AppleWatchSamplingPackage
The CAMS sampling package. Register it once, before creating or deploying a protocol.
Measure type constants
Members
AppleWatchDevice
The device configuration placed in the study protocol. Extends
CamsDevice<AppleWatchDeviceRegistration>.
Every configuration property is documented in
Configuring the Watch.
AppleWatchDeviceRegistration
The runtime registration of the watch, stored with the deployment. Extends
HardwareDeviceRegistration.
AppleWatchDeviceManager
The CAMS device manager for the watch. Obtain it from the DeviceController:
See Runtime State for how to use these.
AppleWatchService
A singleton wrapping the three platform channels. The device manager uses it; use it
directly only for low-level access, such as a debug screen.
AppleWatchStatus
AppleWatchRecords
One decoded chunk file: all records from one AWARE table.
AppleWatchFileTransfer
Data classes
All extendAppleWatchData, which carries deviceId, timestamp, label and
recordId. Fields per class are documented in
Measure Types & Data.
Probes
One per measure type, all extendingAppleWatchProbe (itself a StreamProbe). They are
created by the sampling package and rarely used directly.
AppleWatchMotionProbe, AppleWatchHeartRateProbe, AppleWatchBatteryProbe,
AppleWatchLocationProbe, AppleWatchHeadingProbe, AppleWatchBluetoothProbe,
AppleWatchAmbientNoiseProbe, AppleWatchAudioLabelProbe, AppleWatchDeviceInfoProbe.
Each declares the AWARE table it reads and a toData() that converts one row into its
data class — the extension point if you add a sensor of your own.
Enums
WatchBackgroundSessionType
WatchBackgroundSessionType
How the watch app keeps running when it is not in the foreground.
WatchTransferMode
WatchTransferMode
Which records the watch includes in a transfer.
WatchBatteryState
WatchBatteryState
A 1:1 mapping of
WKInterfaceDeviceBatteryState.WatchFileTransferState
WatchFileTransferState
The progress of one transferred file.
AppleWatchTable
AppleWatchTable
Constants for the AWARE table names, used to route records to probes.
motion, heartRate, battery, location, heading, bluetooth, ambientNoise,
audioLabel, device — mapping to ios_watch_motion, ios_watch_heart_rate, and so
on. See How It Works.