Murl Engine Lua Addon API  Version 1.0 beta
Murl.IAppControl

The IAppControl interface.


Table members

Inherited


Murl.IControlable

Methods


TerminateApp()

Terminate (exit) the entire application within the next frame tick. Terminating the application is not supported on all devices.

Boolean TerminateApp()

Returns
Boolean true if successful.

IsTerminatingApp()

Check if the application is going to be terminated within the next frame tick.

Boolean IsTerminatingApp()

Returns
Boolean true if termination is pending

SuspendApp()

Suspend the application within the next frame tick. Suspending the application is not supported on all devices.

Boolean SuspendApp()

Returns
Boolean true if successful.

IsSuspendingApp()

Check if the application is going to be suspended within the next frame tick.

Boolean IsSuspendingApp()

Returns
Boolean true if suspension is pending

SetLoadingProgress(progress)

Set the current loading progress. Setting the loading progress is an optional feature to communicate the app's current loading state to the platform handler. By default, the loading progress is set to 0.0 (unloaded).

Boolean SetLoadingProgress(Number progress)

Parameters
progressThe loading progress, between 0.0 and 1.0
Returns
Boolean true if successful.

GetLoadingProgress()

Get the current loading progress.

Number GetLoadingProgress()

Returns
Number The current loading progress, between 0.0 and 1.0