Table of Contents

Class Device

Namespace
GroupeIsa.Neos.Designer.UIAbstractions
Assembly
GroupeIsa.Neos.Designer.UIAbstractions.dll

Represents the device (computer, tablet, phone, etc.) on which the application is running.

[ExcludeFromCodeCoverage]
public static class Device
Inheritance
Device
Inherited Members

Properties

HasLargeScreenWidth

Gets a value indicating whether the device has a large screen width.

[Obsolete("Use Window.Current.Viewport.IsWidthAtLeastMedium instead.")]
public static bool HasLargeScreenWidth { get; }

Property Value

bool

HasSmallScreenWidth

Gets a value indicating whether the device has a small screen width.

[Obsolete("Use Window.Current.Viewport.IsWidthBelowMedium instead.")]
public static bool HasSmallScreenWidth { get; }

Property Value

bool

ResponsiveBreakpoint

Gets the responsive breakpoint of the current client area of the device.

[Obsolete("Use Window.Current.Viewport.CurrentBreakpoint instead.")]
public static ResponsiveBreakpoint ResponsiveBreakpoint { get; }

Property Value

ResponsiveBreakpoint

Methods

PrefersDarkColorScheme()

Gets a value indicating whether the user prefers a dark color scheme.

public static bool PrefersDarkColorScheme()

Returns

bool

true if the user prefers a dark color scheme; otherwise, false.

SupportsTouch()

Gets a value indicating whether touch input is supported.

public static bool SupportsTouch()

Returns

bool

true if touch input is supported; otherwise, false.