Access operating system level settings and operations.

Static variables

staticallowScreenTimeout:Bool

Determines if the screen saver is allowed to start or not.

staticread onlyapplicationDirectory:String

The path to the directory where the application is installed, along with its supporting files. In many cases, this directory is read-only, and attempts to write to files, create new files, or delete files in this directory are likely fail.

staticread onlyapplicationStorageDirectory:String

The application's dedicated storage directory, which unique to each application and user. Useful for storing settings on a user-specific and application-specific basis.

This directory may or may not be removed when the application is uninstalled, and it depends on the platform and installer technology that is used.

staticread onlydesktopDirectory:String

The path to the directory containing the user's desktop.

staticread onlydeviceModel:String

staticread onlydeviceVendor:String

staticdisableCFFI:Bool

staticread onlydocumentsDirectory:String

The path to the directory containing the user's documents.

staticread onlyendianness:Endian

The platform's default endianness for bytes.

staticread onlyfontsDirectory:String

The path to the directory where fonts are installed.

staticread onlynumDisplays:Int

The number of available video displays.

staticread onlyplatformLabel:String

staticread onlyplatformName:String

staticread onlyplatformVersion:String

staticread onlyuserDirectory:String

The path to the user's home directory.

Static methods

@:value({ config : null, height : null, width : null })@:keep@:expose("lime.embed")staticembed(projectName:String, element:Dynamic, ?width:Int, ?height:Int, ?config:Dynamic):Void

Available on HTML5

staticexit(code:Int):Void

Available on Android, Linux, Mac, Windows, iOS

Attempts to exit the application. Dispatches onExit, and will not exit if the event is canceled.

staticgetDisplay(id:Int):Display

Returns information about the video display with the specified ID.

staticgetTimer():Int

The number of milliseconds since the application was initialized.

@:value({ lazy : false, args : 0 })staticinlineload(library:String, method:String, args:Int = 0, lazy:Bool = false):Dynamic

Available on Android, Linux, Mac, Windows, iOS

staticopenFile(path:String):Void

Opens a file with the suste, default application.

In a web browser, opens a URL with target _blank.

@:value({ target : "_blank" })staticopenURL(url:String, target:String = "_blank"):Void

Opens a URL with the specified target web browser window.