SamplingPackageRegistry class

The singleton registry of all SamplingPackages used in an app.

An app registers each external sampling package here at startup, before it configures the SmartPhoneClientManager. The registry then knows which measure types, Probes and devices are available on this phone.

Key points:

See the CAMS GitHub repo for an overview of available sampling packages.

SamplingPackageRegistry().register(ContextSamplingPackage());
await SmartPhoneClientManager().configure();

Constructors

SamplingPackageRegistry()
Returns the singleton SamplingPackageRegistry.
factory

Properties

dataTypes → List<DataTypeMetaData>
The combined list of all data types in all packages.
no setter
hashCode → int
The hash code for this object.
no setterinherited
packages → List<SamplingPackage>
The registered packages, in registration order.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplingSchemes → DataTypeSamplingSchemeMap
The combined sampling schemes for all measure types in all packages.
no setter

Methods

create(String type) → Probe?
Creates a new Probe for the data type.
lookup(String type) → Set<SamplingPackage>
Returns the SamplingPackages that support the data type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(SamplingPackage package) → void
Registers package.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited