DiscreteDataDeliveryPolicy class Sensor Data Source
Delivers a sensor sample only when the data changes.
Suitable for DataType.mountInformation, DataType.orientation and DataType.battery. Values that fluctuate constantly, such as battery voltage and temperature, are ignored, so a sensor at rest produces no updates at all.
- Inheritance
-
- Object
- DataDeliveryPolicy
- DiscreteDataDeliveryPolicy
Properties
- dataType → DataType
-
The data type this policy applies to.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRegisteredAutoReleaseObject ↔ bool
-
getter/setter pairinherited
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throttleInterval ↔ Duration
-
Get the minimum time between delivered updates.
getter/setter pairinherited
Methods
-
dispose(
) → void -
Disposes the native object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required DataType dataType, Duration throttleInterval = Duration.zero}) → DiscreteDataDeliveryPolicy? -
Create a policy for
dataType, throttled tothrottleInterval.override