Skip to main content

DeviceDisplay

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (4.1.0.0)

Provides properties and events to interact with the device's display.

public class DeviceDisplay : DeviceInfoBase

Access this class through the Device singleton.

Properties​

Instance member Density​

Double: The device's density.

Instance member Height​

Double: The device's height (in pixels).

Instance member KeepOn​

Boolean: Gets or sets whether the device screen should be allowed to lock.

Instance member Orientation​

DisplayOrientation: The device display's orientation.

Instance member RefreshRate​

Single: The device's refresh rate.

Instance member Rotation​

DisplayRotation: The device's rotation.

Instance member Width​

Double: The device's width (in pixels).

Methods​

Instance member OnWebUpdate(info)​

Updates the info configuration.

ParameterTypeDescription
infoObjectThe info configuration.

Events​

Instance member MainDisplayInfoChanged​

EventHandler Fires when the main display info changes.