Microsoft.Maui.Devices.Sensors Namespace

Provides interfaces, classes and supporting types to work with device sensors across all supported platforms. E.g. accelerometer, compass, geolocation, etc.

Classes

Accelerometer

Accelerometer data of the acceleration of the device in three dimensional space.

AccelerometerChangedEventArgs

Event arguments containing the current reading of IAccelerometer.

Barometer

Monitor changes to the atmospheric pressure.

BarometerChangedEventArgs

Contains the current pressure information from the ReadingChanged event.

Compass

Monitor changes to the orientation of the user's device.

CompassChangedEventArgs

Event arguments when compass reading changes.

CompassExtensions

This class contains static extension methods for use with ICompass.

Geocoding

The Geocoding API provides functionality to geocode a placemark to positional coordinates and reverse-geocode coordinates to a placemark.

GeocodingExtensions

Static class with extension methods for the IGeocoding APIs.

Geolocation

Provides a way to get the current location of the device.

GeolocationExtensions

Static class with extension methods for the IGeolocation APIs.

GeolocationListeningFailedEventArgs

Event args for the geolocation listening error event.

GeolocationListeningRequest

Request options for listening to geolocations

GeolocationLocationChangedEventArgs

Event arguments containing the current reading of LocationChanged.

GeolocationRequest

Represents the criteria for a location request.

Gyroscope

The Gyroscope API lets you monitor the device's gyroscope sensor which is the rotation around the device's three primary axes.

GyroscopeChangedEventArgs

Contains the current axis reading information from the ReadingChanged event.

Location

Represents a physical location with the latitude, longitude, altitude and time information reported by the device.

LocationExtensions

This class contains static extension methods for use with Location objects.

Magnetometer

Detect device's orentation relative to Earth's magnetic field in microteslas (µ).

MagnetometerChangedEventArgs

Contains the current pressure information from the ReadingChanged event.

OrientationSensor

The OrientationSensor API lets you monitor the orientation of a device in three dimensional space.

OrientationSensorChangedEventArgs

Contains the current orientation sensor information from the ReadingChanged event.

OrientationSensorImplementation

Concrete implementation of the IOrientationSensor APIs.

Placemark

Represents a user-friendly description of a geographic coordinate. This contains information such as the name of the place, its address, and other information.

PlacemarkExtensions

This class contains static extension methods for use with Placemark objects.

Structs

AccelerometerData

Data representing the devices' three accelerometers.

BarometerData

Contains the pressure measured by the user's device barometer.

CompassData

Contains the orientation of the user's device.

GyroscopeData

Contains the axis readings measured by the device's gyroscope.

MagnetometerData

Contains the pressure measured by the user's device magnetometer.

OrientationSensorData

Contains the orientation measured by the user's device orientation sensor.

Interfaces

IAccelerometer

Accelerometer data of the acceleration of the device in three-dimensional space.

IBarometer

Monitor changes to the atmospheric pressure.

ICompass

Monitor changes to the orientation of the user's device.

IGeocoding

The Geocoding API provides functionality to geocode a placemark to positional coordinates and reverse-geocode coordinates to a placemark.

IGeolocation

Provides a way to get the current location of the device.

IGyroscope

The Gyroscope API lets you monitor the device's gyroscope sensor which is the rotation around the device's three primary axes.

IMagnetometer

Detect device's orentation relative to Earth's magnetic field in microteslas (µ).

IOrientationSensor

The OrientationSensor API lets you monitor the orientation of a device in three dimensional space.

IPlatformCompass

Platform-specific APIs for use with ICompass.

IPlatformGeocoding

Separate abstraction for platform-specific geocoding APIs.

Enums

AltitudeReferenceSystem

Indicates the altitude reference system to be used in defining a location.

DistanceUnits

Distance unit for use in conversion.

GeolocationAccuracy

Represents levels of accuracy when determining the device location.

GeolocationError

Error values for listening for geolocation changes

SensorSpeed

Represents the sensor speed to monitor device sensors for changes.

Remarks

The functionality in this namespace is formerly known as (Xamarin) Essentials.