samplingRate property

Duration samplingRate
final

A Duration that represents how frequently new sensor samples occur.

A more frequent samplingRate will result in a more accurate sampling, but because many devices with accelerometers are mobiles held in the hand, the result may be "shaky".

Default is 10ms, a time much shorter than the default Duration of animation for XL.drag, which is 500ms.

Consider a sensitivity buffer that correlates with this samplingRate. A slow samplingRate would not necessitate a large buffer, so a smaller sensitivity would suffice.

Implementation

final Duration samplingRate;