Device
A utility class to interact with the current Device/Platform.
The string "Android", representing the Android operating system.
The string "GTK", representing the Linux operating system.
For internal use by the Xamarin.Forms platform.
The string "iOS", representing the iOS operating system.
The string "macOS", representing the macOS operating system.
The string "Tizen", representing the Tizen operating system.
The string "UWP", representing the UWP operating system.
The string "WPF", representing the Windows Presentation Foundation framework.
Gets a list of custom flags that were set on the device before Xamarin.Forms was initialized.
Gets the flow direction on the device.
Gets the kind of device that Xamarin.Forms is currently working on.
For internal use by the Xamarin.Forms platform.
For internal use by the Xamarin.Forms platform.
Gets the TargetPlatform indicating the OS Xamarin.Forms is working on.
For internal use by the Xamarin.Forms platform.
Gets the kind of device that Xamarin.Forms is currently working on.
Invokes an Action on the device main (UI) thread.
For internal use by the Xamarin.Forms platform.
Returns a double that represents a font size that corresponds to size on targetElement.
Returns a double that represents the named size for the font that is used on the element on the native platform.
For internal use by the Xamarin.Forms platform.
public static void OnPlatform(Action iOS = null, Action Android = null, Action WinPhone = null, Action Default = null)
Executes different Actions depending on the TargetPlatform that Xamarin.Forms is working on.
Returns different values depending on the TargetPlatform Xamarin.Forms is working on.
Request the device to open the Uri.
Sets a list of custom flags on the device.
Sets the flow direction on the device.
For internal use by the Xamarin.Forms platform.
For internal use by the Xamarin.Forms platform.
Starts a recurring timer on the UI thread using the device clock capabilities.