Microsoft.Maui.ApplicationModel Namespace

Provides common interfaces, classes and enums that support the application model.

Classes

AppAction

The AppAction class lets you create and respond to app shortcuts from the app icon.

AppActionEventArgs

Event arguments containing data that is used when the app started through an AppAction.

AppActions

The AppActions API lets you create and respond to app shortcuts from the app icon.

AppActionsExtensions

Supporting extension methods for the AppActions API.

AppInfo

Represents information about the application.

Browser

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

BrowserExtensions

This class contains static extension methods for use with IBrowser.

BrowserLaunchOptions

Optional setting to open the browser with.

FeatureNotEnabledException

Exception that occurs when an attempt is made to use a feature on a platform that does not have this feature enabled.

FeatureNotSupportedException

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

Launcher

The Launcher API enables an application to open a URI by the system. This is often used when deep linking into another application's custom URI schemes.

LauncherExtensions

Static class with extension methods for the ILauncher APIs.

MainThread

The MainThread class allows applications to run code on the main thread of execution, and to determine if a particular block of code is currently running on the main thread.

Map

The Map API enables an application to open the installed map application to a specific location or placemark.

MapExtensions

Static class with extension methods for the IMap APIs.

MapLaunchOptions

Launch options for opening the installed map application.

OpenFileRequest

Represents a request for opening a file in another application.

PermissionException

Exception that occurs when calling an API that requires a specific permission.

Permissions

The Permissions API provides the ability to check and request runtime permissions.

Permissions.BasePermission

Represents the abstract base class for all permissions.

Permissions.BasePlatformPermission

Represents the platform-specific abstract base class for all permissions on this platform.

Permissions.Battery

Represents permission to access the device battery information.

Permissions.Bluetooth

Represents permission to communicate via Bluetooth (scanning, connecting and/or advertising).

Permissions.CalendarRead

Represents permission to read the device calendar information.

Permissions.CalendarWrite

Represents permission to write to the device calendar data.

Permissions.Camera

Represents permission to access the device camera.

Permissions.ContactsRead

Represents permission to read the device contacts information.

Permissions.ContactsWrite

Represents permission to write to the device contacts data.

Permissions.Flashlight

Represents permission to access the device flashlight.

Permissions.LaunchApp

Represents permission to launch other apps on the device.

Permissions.LocationAlways

Represents permission to access the device location, always.

Permissions.LocationWhenInUse

Represents permission to access the device location, only when the app is in use.

Permissions.Maps

Represents permission to access the device maps application.

Permissions.Media

Represents permission to access media from the device gallery.

Permissions.Microphone

Represents permission to access the device microphone.

Permissions.NearbyWifiDevices

Represents permission to access nearby WiFi devices.

Permissions.NetworkState

Represents permission to access the device network state information.

Permissions.Phone

Represents permission to access the device phone data.

Permissions.Photos

Represents permission to access photos from the device gallery.

Permissions.PhotosAddOnly

Represents permission to add photos (not read) to the device gallery.

Permissions.PostNotifications

Represents permission to post notifications

Permissions.Reminders

Represents permission to access the device reminders data.

Permissions.Sensors

Represents permission to access the device sensors.

Permissions.Sms

Represents permission to access the device SMS data.

Permissions.Speech

Represents permission to access the device speech capabilities.

Permissions.StorageRead

Represents permission to read the device storage.

Permissions.StorageWrite

Represents permission to write to the device storage.

Permissions.Vibrate

Represents permission to access the device vibration motor.

Platform

A static class that contains platform-specific helper methods.

VersionTracking

The VersionTracking API provides an easy way to track an app's version on a device.

Interfaces

IAppActions

The AppActions API lets you create and respond to app shortcuts from the app icon.

IAppInfo

Represents information about the application.

IBrowser

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

ILauncher

The Launcher API enables an application to open a URI by the system. This is often used when deep linking into another application's custom URI schemes.

IMap

The Map API enables an application to open the installed map application to a specific location or placemark.

IPlatformAppActions

Provides abstractions for the platform lifecycle events that are triggered when using App Actions.

IVersionTracking

The VersionTracking API provides an easy way to track an app's version on a device.

Enums

AppPackagingModel

Describes packaging options for a Windows app.

AppTheme

Enumerates different themes an operating system or application can show.

BrowserLaunchFlags

Additional flags that can be set to control how the browser opens.

BrowserLaunchMode

Launch type of the browser.

BrowserTitleMode

Mode for the in-app browser title.

LayoutDirection

Enumerates possible layout directions.

NavigationMode

Represents various modes of navigation that can be passed to the operating system's Maps app.

PermissionStatus

Possible statuses of a permission.