Xamarin.Essentials Namespace

Xamarin.Essentials offers a cross-platform API for platform specific features.

Classes

Accelerometer

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

AccelerometerChangedEventArgs

Event arguments containing the current reading.

AppInfo

Represents information about the application.

Barometer

Monitor changes to the atmospheric pressure.

BarometerChangedEventArgs

The current pressure information from the change event.

Battery

Methods and properties for battery and charging information of the device.

BatteryChangedEventArgs

Battery changed information.

Browser

Provides a way to display a web page inside an app.

Clipboard

Provides a way to work with text on the device clipboard.

Compass

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

CompassChangedEventArgs

Event arguments when compass reading changes.

Connectivity

Connectivity and networking helpers.

ConnectivityChangedEventArgs

The current connectivity information from the change event.

DataTransfer

Share data such as text and uris to other applications.

DeviceDisplay

Represents information about the device screen.

DeviceInfo

Represents information about the device.

DeviceInfo.Idioms

The device idiom.

DeviceInfo.Platforms

Platform operating system of the device.

Email

Provides an easy way to allow the user to send emails.

EmailMessage

Represents a single email message.

EnergySaverStatusChangedEventArgs
FeatureNotSupportedException

Exception that occurs when an attempt is made to use a feature on a platform that does not support it.

FileSystem

Provides an easy way to access the locations for device folders.

Flashlight

Turn the Flashlight / Torch / Lamp On and Off.

Geocoding

Easily convert between geographic coordinated and place names.

Geolocation

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

GeolocationRequest

Represents the criteria for a location request.

Gyroscope

Gyroscope data of the rotation around the device's three primary axis.

GyroscopeChangedEventArgs

Event arguments containing the current reading.

Launcher

Launches an application specified by the passed uri.

Locale

Represents a specific geographical, political, or cultural region.

Location

The latitude, longitude, and time information reported by the device.

LocationExtensions

Location Extensions

Magnetometer

Detect device's orentation relative to Earth's magnetic field.

MagnetometerChangedEventArgs

Event arguments containing the current reading.

MainThread

Main Thread helpers.

Maps

Map helpers to open a route to specified places via default platforms maps implementation.

MapsLaunchOptions
NotImplementedInReferenceAssemblyException

Exception that occurs when executed from a reference assembly. This usually means that the NuGet was not installed into the app project.

OrientationSensor

Device orientation (quaternion) relative to magnetic fields.

OrientationSensorChangedEventArgs

Orientation event args when reading changes.

PermissionException

Exception that occures when calling an API that requires a specific exception

PhoneDialer

Open the platform phone dialer to place a call.

Placemark

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

PlacemarkExtensions
Platform

Platform specific helpers.

Power

Access to device specific power settings.

Preferences

A class to interact with the preferences/settings of the native platform.

ScreenLock

Provides an easy way to keep the device screen on.

ScreenMetricsChangedEventArgs

Screen metric event arguments.

SecureStorage

Provides simple secure storage for key/value pairs.

ShareTextRequest

Standard request for sharing text to other applications.

Sms

Provides an easy way to allow the user to send SMS messages.

SmsMessage

Represents a single SMS message.

SpeakSettings

Text to Speech Settings.

TextToSpeech

Speak text to Speech

VersionTracking

Provides an easy way to track an app's version on a device.

Vibration

Provides an easy way to make the device vibrate.

Structs

AccelerometerData

Data representing the devies' three accelerometers.

BarometerData

Contains the pressure measured by the user's device.

CompassData

Contains the orientation of the user's device.

GyroscopeData

Gyroscope information.

MagnetometerData

Data for magnetometer changes.

OrientationSensorData

Sensor data for orientation.

ScreenMetrics

This type represents the properties of the current screen.

Enums

BatteryPowerSource

How the device and battery are currently being powered or charged.

BatteryState

The current state of the battery and if it is being charged or full.

BrowserLaunchMode

Launch type of the browser.

ConnectionProfile

Describes the type of connection the device is using.

DeviceType

Various types of devices.

DistanceUnits

Distance Unit for use in conversion.

EmailBodyFormat

Represents various types of email body formats.

EnergySaverStatus

Status of energy saver on the device.

GeolocationAccuracy

Represents levels of accuracy when determining location.

MapDirectionsMode

Directions mode for navigation.

NetworkAccess

Various states of the connection to the internet.

ScreenOrientation

Screen orientation.

ScreenRotation

Screen rotation.

SensorSpeed

Sensor speed to monitor for changes.

Remarks