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.

BatteryInfoChangedEventArgs

Battery changed information.

Browser

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

BrowserLaunchOptions

Optional setting to open the browser with.

Clipboard

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

ColorConverters

Contains several helper methods to convert System.Drawing.Color

ColorExtensions

Extension methods for System.Drawing.Color

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.

DeviceDisplay

Represents information about the device screen.

DeviceInfo

Represents information about the device.

DisplayInfoChangedEventArgs

Main display information event arguments.

Email

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

EmailAttachment

Email file attachment.

EmailMessage

Represents a single email message.

EnergySaverStatusChangedEventArgs
FeatureNotEnabledException
FeatureNotSupportedException

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

FileBase

A representation of a file and its content type.

FileProvider

Android FileProvider implementation for creating Content URIs to share files with other applications.

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 in microteslas (┬Á).

MagnetometerChangedEventArgs

Event arguments containing the current reading.

MainThread

Main Thread helpers.

Map

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

MapLaunchOptions
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.

PointExtensions

Extension methods for Point.

Preferences

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

RectangleExtensions

Extension methods for Rectangle.

SecureStorage

Provides simple secure storage for key/value pairs.

Share

Share data such as text and uris to other applications.

ShareFile

A file to be shared.

ShareFileRequest

Standard request for sharing a file to another application.

ShareTextRequest

Standard request for sharing text to other applications.

SizeExtensions

Extension methods for Size.

Sms

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

SmsMessage

Represents a single SMS message.

SpeechOptions

Text-to-speech options.

TextToSpeech

Speak text to Speech

UnitConverters
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.

DeviceIdiom

The idiom (form factor) of the device.

DevicePlatform

The device platform that the application is running on.

DisplayInfo

Represents information about the screen.

GyroscopeData

Gyroscope information.

MagnetometerData

Data for magnetometer changes.

OrientationSensorData

Sensor data for orientation.

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.

BrowserTitleMode

Mode for the title.

ConnectionProfile

Describes the type of connection the device is using.

DeviceType

Various types of devices.

DisplayOrientation

Display Orientation

DisplayRotation

Display rotation.

DistanceUnits

Distance Unit for use in conversion.

EmailBodyFormat

Represents various types of email body formats.

EnergySaverStatus

Status of energy saver on the device.

FileProviderLocation

Location to save temporary files to for sharing.

GeolocationAccuracy

Represents levels of accuracy when determining location.

NavigationMode

Represents various modes of navigation.

NetworkAccess

Various states of the connection to the internet.

SensorSpeed

Sensor speed to monitor for changes.

Remarks