Modifier and Type | Method and Description |
---|---|
LuaState |
getLuaState()
Gets the
LuaState object that the Corona project's code runs in. |
CoronaRuntimeTaskDispatcher |
getTaskDispatcher()
Returns the
CoronaRuntimeTaskDispatcher used by this
CoronaRuntime . |
boolean |
isRunning()
Determines if the
CoronaRuntime is currently running its project. |
boolean |
wasDisposed()
Determines if the
CoronaRuntime has been disposed of, meaning it was destroyed and can no
longer be used. |
boolean |
wasNotDisposed()
Determines if the
CoronaRuntime is still available and has not been destroyed yet, which
occurs on exit. |
public CoronaRuntimeTaskDispatcher getTaskDispatcher()
public boolean wasDisposed()
CoronaRuntime
has been disposed of, meaning it was destroyed and can no
longer be used. This happens when the CoronaRuntime
exits, which occurs when the
CoronaActivity
has been destroyed.public boolean wasNotDisposed()
CoronaRuntime
is still available and has not been destroyed yet, which
occurs on exit.public boolean isRunning()
CoronaRuntime
is currently running its project.CoronaRuntime
is currently running its project.
Returns false if the CoronaRuntime
has been suspended or stopped.public LuaState getLuaState()
LuaState
object that the Corona project's code runs in.
Provides access to all modules, functions, and variables declared in the Corona project's code.
This LuaState
can be used to add new APIs to the project at run time.LuaState
object.
Returns null if it has not been created yet, which can happen if Corona is currently loading a project.