Xamarin.Essentials Namespace

Xamarin.Essentials offers a cross-patform APIs 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.

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.

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

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

GyroscopeChangedEventArgs

Event arguments containing the current reading.

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.

NotImplementedInReferenceAssemblyException

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

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.

Platform

Platform specific helpers.

Preferences

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

ScreenLock

Provides an easy way to keep the device screen on.

ScreenMetricsChanagedEventArgs

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.

CompassData

Contains the orientation of the user's device.

GyroscopeData

Gyroscope information.

Locale

Represents a specific geographical, political, or cultural region.

MagnetometerData

Data for magnetometer changes.

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.

BrowserLaunchType

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.

GeolocationAccuracy

Represents levels of accuracy when determining location.

NetworkAccess

Various states of the connection to the internet.

ScreenOrientation

Screen orientation.

ScreenRotation

Screen rotation.

SensorSpeed

Sensor speed to monitor for changes.

Delegates

AccelerometerChangedEventHandler

Event handler when gyrochanges.

BatteryChangedEventHandler

Event handler that is triggered when the battery changes.

CompassChangedEventHandler

Event handler for compass changed events.

ConnectivityChangedEventHandler

Event handler for connectivity change events.

GyroscopeChangedEventHandler

Event handler when gyrochanges.

MagnetometerChangedEventHandler

Event handler when megnetomoter changes.

ScreenMetricsChanagedEventHandler

Screen metric event handler.

Remarks