onDeviceMotion property

Stream<DeviceMotionEvent> onDeviceMotion

Stream of devicemotion events handled by this Window.

Source

@DomName('Window.ondevicemotion')
@DocsEditable()
// http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion
@Experimental()
Stream<DeviceMotionEvent> get onDeviceMotion =>
    deviceMotionEvent.forTarget(this);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Window/onDeviceMotion.html