Skip to main content

DeviceSystem

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (4.1.0.0)

Provides information related to the device's system.

public class DeviceSystem : DeviceInfoBase

Access this class through the Device singleton.

Properties​

Instance member AppName​

String: Gets the name of the application.

Instance member AppTheme​

AppTheme: App theme (i.e. light, dark, etc.)

Instance member DeviceName​

String: The name identifying the device.

Instance member DeviceType​

DeviceType: Gets the type of device (physical / virtual).

Instance member ID​

String: Unique device ID.

Instance member Idiom​

DeviceIdiom: The type of device.

Instance member IsAndroid​

Boolean: Returns true if the device is Android.

Instance member IsApple​

Boolean: Returns true if the device is an Apple device.

True for: iOS tvOS macOS watchOS MacCatalyst

Instance member IsDesktop​

Boolean: Returns true if the current device is a desktop.

Instance member IsMobile​

Boolean: Returns true if the current device is a phone or tablet.

Instance member IsPhone​

Boolean: Returns true if the current device is a phone.

Instance member IsTablet​

Boolean: Returns true if the current device is a tablet.

Instance member IsWindows​

Boolean: Returns true if the device is Windows.

UWP or WinUI.

Instance member Manufacturer​

String: Device manufacturer.

Instance member Model​

String: The model of the device.

Instance member OfflineUrl​

String: Gets the offline embedded web server url, if started.

Instance member PackageName​

String: Gets the name of the package.

Instance member PackagingModel​

AppPackagingModel: Gets whether the app has been packaged as an MSIX or an independent executable.

Windows only.

Instance member Platform​

DevicePlatform: The name of the operating system running on the device.

Instance member Version​

String: The current version of the operating system.

Methods​

Instance member OnWebUpdate(info)​

Populates and updates DeviceSystem with device information.

ParameterTypeDescription
infoObjectThe dynamic info object.