Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Magnetometer()
constructor creates a new Magnetometer
object which returns information about the magnetic field as detected by a device's primary magnetometer sensor.