Skip to content

[Feature Request]: Select type of android sensor #12

Description

@Koboo

Feature Summary

Support selection of specific android sensor type

Detailed Description

Hey, first of all I want to thank you for creating this library! :)

My feature request is pretty straight forward: I read about androids sensor types and found out that there's a SENSOR_TYPE_GAME_ROTATION_VECTOR which acts pretty much the same as the SENSOR_TYPE_ROTATION_VECTOR but with the difference that it doesn't use the magnetometer to reduce wrong values caused by electromagnetic issues.

Potential Benefits

Less value issues caused by electromagnetic fields, because it doesn't use the magnetometer.

Possible Solutions

As far as I resarched: It should respond with the same values as the current SensorEvent. So you should only have to create an enum and make it selectable.

Docs: https://source.android.com/docs/core/interaction/sensors/sensor-types#game_rotation_vector

Alternatives Considered

No response

Additional Context

I can try to create a PR for that, but I'm not very familiar with flutter plugin development, so I would highly apprecicate this feature!

Preliminary Checks

  • I've checked if this feature request does not already exist.
  • I've considered and outlined any potential impact on existing functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions