Static variables

staticread onlylanguage:String

The IS0 639 system current language identifier.

staticread onlyrefreshRate:Int

Deprecated: "Use the kha.Display API instead"

staticread onlysystemId:String

staticread onlytime:Float

staticread onlytitle:String

staticread onlyvsync:Bool

Deprecated: "Use the kha.Window API instead"

Static methods

staticcanSwitchFullscreen():Bool

Deprecated: "This only returns a default value"

staticchangeResolution(width:Int, height:Int):Void

Deprecated: "This does nothing. On Windows you can use Window.resize instead after setting the mode to ExclusiveFullscreen"

staticexitFullscreen():Void

Deprecated: "Use the kha.Window API instead"

staticinit(options:OldSystemOptions, callback:() ‑> Void):Void

Deprecated: "Use System.start instead"

staticisFullscreen():Bool

Deprecated: "Use the kha.Window API instead"

staticloadUrl(url:String):Void

staticlogin():Void

staticnotifyOnApplicationState(foregroundListener:() ‑> Void, resumeListener:() ‑> Void, pauseListener:() ‑> Void, backgroundListener:() ‑> Void, shutdownListener:() ‑> Void):Void

staticnotifyOnCutCopyPaste(cutListener:() ‑> String, copyListener:() ‑> String, pasteListener:String ‑> Void):Void

staticnotifyOnDropFiles(dropFilesListener:String ‑> Void):Void

staticnotifyOnFrames(listener:Array<Framebuffer> ‑> Void):Void

The provided listener is called when new framebuffers are ready for rendering into. Each framebuffer corresponds to the kha.Window of the same index, single-window applications always receive an array of only one framebuffer.

Parameters:

listener

The callback to add

staticnotifyOnFullscreenChange(func:() ‑> Void, error:() ‑> Void):Void

Deprecated: "This does nothing"

staticnotifyOnLoginLogout(loginListener:() ‑> Void, logoutListener:() ‑> Void):Void

@:value({ id : 0 })staticnotifyOnRender(listener:Framebuffer ‑> Void, id:Int = 0):Void

Deprecated: "Use System.notifyOnFrames instead"

staticremoveApplicationStateListeners(foregroundListener:() ‑> Void, resumeListener:() ‑> Void, pauseListener:() ‑> Void, backgroundListener:() ‑> Void, shutdownListener:() ‑> Void):Void

staticremoveDropListener(listener:String ‑> Void):Void

staticremoveFramesListener(listener:Array<Framebuffer> ‑> Void):Void

Removes a previously set frames listener.

Parameters:

listener

The callback to remove

staticremoveFullscreenListener(func:() ‑> Void, error:() ‑> Void):Void

Deprecated: "This does nothing"

staticrequestFullscreen():Void

Deprecated: "Use the kha.Window API instead"

staticrequestShutdown():Void

Deprecated: "Use System.stop instead"

staticsafeZone():Float

staticscreenDpi():Int

Deprecated: "Use the kha.Display API instead"

staticsetSafeZone(value:Float):Void

staticstart(options:SystemOptions, callback:Window ‑> Void):Void

staticstop():Bool

Schedules the application to stop as soon as possible. This is not possible on all targets.

Returns:

Returns true if the application can be stopped

staticvibrate(ms:Int):Void

Pulses the vibration hardware on the device for time in milliseconds, if such hardware exists.

@:value({ window : 0 })staticwindowHeight(window:Int = 0):Int

@:value({ window : 0 })staticwindowWidth(window:Int = 0):Int