Structure
MotionManager.Properties
public struct Properties
Relationships
Member Of
MotionManagerA wrapper around Core Motion's
CMMotionManagerthat exposes its functionality through effects and actions, making it easy to use with the Composable Architecture, and easy to test.
Initializers
init(accelerometerUpdateInterval:deviceMotionUpdateInterval:gyroUpdateInterval:magnetometerUpdateInterval:showsDeviceMovementDisplay:)
public init(
accelerometerUpdateInterval: TimeInterval? = nil,
deviceMotionUpdateInterval: TimeInterval? = nil,
gyroUpdateInterval: TimeInterval? = nil,
magnetometerUpdateInterval: TimeInterval? = nil,
showsDeviceMovementDisplay: Bool? = nil
)
Properties
accelerometerUpdateInterval
public var accelerometerUpdateInterval: TimeInterval?
deviceMotionUpdateInterval
public var deviceMotionUpdateInterval: TimeInterval?
gyroUpdateInterval
public var gyroUpdateInterval: TimeInterval?
magnetometerUpdateInterval
public var magnetometerUpdateInterval: TimeInterval?
showsDeviceMovementDisplay
public var showsDeviceMovementDisplay: Bool?