Device Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This API is now deprecated.
A utility class to interact with the current Device/Platform.
public ref class Device abstract sealed
[System.Obsolete]
public static class Device
[<System.Obsolete>]
type Device = class
Public Class Device
- Inheritance
-
Device
- Attributes
Android |
Obsolete.
The string "Android", representing the Android operating system. |
iOS |
Obsolete.
The string "iOS", representing the iOS operating system. |
Mac |
|
Tizen |
Obsolete.
The string "Tizen", representing the Tizen operating system. |
tvOS | |
UWP |
Obsolete.
The string "UWP", representing the UWP operating system. |
WinUI |
Default |
|
Flow |
Obsolete.
Gets the flow direction on the device. |
Idiom |
Obsolete.
Gets the kind of device that Microsoft.Maui.Controls is currently working on. |
Is |
Obsolete.
For internal use by the Microsoft.Maui.Controls platform. |
Runtime |
Obsolete.
Gets the kind of device that Microsoft.Maui.Controls is currently working on. |
Begin |
Obsolete.
Invokes an Action on the device main (UI) thread. |
Get |
Obsolete.
Returns the current SynchronizationContext from the main thread. |
Get |
Obsolete.
Returns a double that represents a font size that corresponds to |
Get |
Obsolete.
For internal use by the Microsoft.Maui.Controls platform. |
Get |
Obsolete.
Returns a double that represents the named size for the font that is used on the element on the native platform. |
Invoke |
Obsolete.
Invokes an Action on the device main (UI) thread. |
Invoke |
Obsolete.
Invokes a Func on the device main (UI) thread. |
Invoke |
Obsolete.
Invokes a Func on the device main (UI) thread. |
Invoke |
Obsolete.
Invokes a Func on the device main (UI) thread. |
Start |
Obsolete.
Starts a recurring timer using the device clock capabilities. |
Product | Versions (Obsolete) |
---|---|
.NET MAUI | (8, 9) |
.NET MAUI feedback
.NET MAUI is an open source project. Select a link to provide feedback: