Skip to main content

headless_compass 0.1.0 copy "headless_compass: ^0.1.0" to clipboard
headless_compass: ^0.1.0 copied to clipboard

Headless iOS compass: a typed stream of magnetic and true heading with accuracy. No widgets, no exceptions, no location permission until you ask for it.

0.1.0 #

First release.

  • isAvailable() — runtime check via CLLocationManager.headingAvailable(), never inferred from the device model.
  • watch() — stream of HeadingSample carrying degrees, accuracy and source (magnetic or true north).
  • requestTrueNorth() — asks for location permission only when called. Denial keeps the stream running on magnetic heading.
  • Never throws. A missing plugin, a simulator, or a device without a magnetometer all surface as isAvailable() == false.
  • HeadingSample.isUsable is false whenever headingAccuracy is negative — that is Apple's way of saying the reading cannot be trusted.
  • iOS only.
0
likes
0
points
33
downloads

Publisher

verified publisherlasoai.vn

Weekly Downloads

Headless iOS compass: a typed stream of magnetic and true heading with accuracy. No widgets, no exceptions, no location permission until you ask for it.

Repository (GitHub)
View/report issues

Topics

#compass #heading #sensors #ios

License

unknown (license)

Dependencies

flutter

More

Packages that depend on headless_compass

Packages that implement headless_compass