Xamarin.Forms.Device Members

The members of Xamarin.Forms.Device are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
static
IdiomTargetIdiom. Gets the kind of device Forms is currently working on.
[read-only]
static
OSTargetPlatform. Gets the marin.Forms.TargetPlatform indicating the OS Forms is working on.

Public Methods

static
BeginInvokeOnMainThread(Action)
Invokes an Action on the device main (UI) thread.
static
GetNamedSize(NamedSize, Type) : double
Returns a double that represents the named size for the font that is used on the element on the native platform.
static
GetNamedSize(NamedSize, Element) : double
Returns a double that represents a font size that corresponds to size on targetElement.
static
OnPlatform(Action, Action, Action, Action)
Executes different Actions depending on the Xamarin.QcuikUI.TargetOS Forms is working on.
static
OnPlatform<T>(T, T, T) : T
Returns different values depending on the Xamarin.Forms.TargetOS Forms is working on.
static
OpenUri(Uri)
Request the device to open the Uri.
static
StartTimer(TimeSpan, Func<bool>)
Starts a recurring timer using the device clock capabilities.