Skip to content

[Request]: Expose device orientation events #1032

@jackd

Description

@jackd

Plugin

sensors_plus

Use case

Device orientation (in world coordinates) is often desired and seems to be implemented for android/ios/web under TYPE_ORIENTATION_VECTOR, CMQuaternion and onDeviceOrientation respectively.

My understanding is these use non-trivial sensor fusion algorithms that are more sophisticated than simply integrating gyroscope measurements.

Related to #764

Proposal

Expose a Stream<DeviceOrientationEvent> orientationEvents.

If it will be considered for acceptance, I could hack up a PR based on other stream implementations, though my experience with android/ios is non-existent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions