Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Device Class Reference

Functions to retrieve information about the device the application is running on. More...

Public Member Functions

Platform GetPlatform ()
 Gets the platform the application is currently running on.
boolean IsPC ()
 Determines whether the application is running on a personal computer OS (Windows, MacOS, Linux).
boolean IsMobile ()
 Determines whether the application is running on a mobile device.
value GetCapability (string capability)
 Checks a capability of the device the application is running on.

Detailed Description

Functions to retrieve information about the device the application is running on.

Member Function Documentation

◆ GetCapability()

value Device.GetCapability ( string capability)

Checks a capability of the device the application is running on.

Parameters
capabilityThe capability.
Returns
The return value of this function depends on the capability being queried; however, if the capability is not present, this function returns null.

◆ GetPlatform()

Platform Device.GetPlatform ( )

Gets the platform the application is currently running on.

Returns
Returns the current platform.

◆ IsMobile()

boolean Device.IsMobile ( )

Determines whether the application is running on a mobile device.

Returns
Returns whether the device is running on a mobile OS.

◆ IsPC()

boolean Device.IsPC ( )

Determines whether the application is running on a personal computer OS (Windows, MacOS, Linux).

Returns
Returns whether the device running on a computer OS.