Safe Haskell | None |
---|---|
Language | Haskell2010 |
- initDeviceMotionEvent :: (MonadDOM m, ToJSString type') => DeviceMotionEvent -> Maybe type' -> Bool -> Bool -> Maybe Acceleration -> Maybe Acceleration -> Maybe RotationRate -> Maybe Double -> m ()
- getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration)
- getAccelerationIncludingGravityUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration
- getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration
- getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate)
- getRotationRateUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m RotationRate
- getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate
- getInterval :: MonadDOM m => DeviceMotionEvent -> m (Maybe Double)
- getIntervalUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Double
- getIntervalUnchecked :: MonadDOM m => DeviceMotionEvent -> m Double
- newtype DeviceMotionEvent = DeviceMotionEvent {}
- gTypeDeviceMotionEvent :: JSM GType
Documentation
initDeviceMotionEvent :: (MonadDOM m, ToJSString type') => DeviceMotionEvent -> Maybe type' -> Bool -> Bool -> Maybe Acceleration -> Maybe Acceleration -> Maybe RotationRate -> Maybe Double -> m () Source #
getAcceleration :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravity :: MonadDOM m => DeviceMotionEvent -> m (Maybe Acceleration) Source #
getAccelerationIncludingGravityUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Acceleration Source #
getAccelerationIncludingGravityUnchecked :: MonadDOM m => DeviceMotionEvent -> m Acceleration Source #
getRotationRate :: MonadDOM m => DeviceMotionEvent -> m (Maybe RotationRate) Source #
getRotationRateUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m RotationRate Source #
getRotationRateUnchecked :: MonadDOM m => DeviceMotionEvent -> m RotationRate Source #
getInterval :: MonadDOM m => DeviceMotionEvent -> m (Maybe Double) Source #
getIntervalUnsafe :: (MonadDOM m, HasCallStack) => DeviceMotionEvent -> m Double Source #
getIntervalUnchecked :: MonadDOM m => DeviceMotionEvent -> m Double Source #
newtype DeviceMotionEvent Source #
Functions for this inteface are in JSDOM.DeviceMotionEvent. Base interface functions are in: