Click or drag to resize
CoronaRuntimeEnvironment Methods

The CoronaRuntimeEnvironment type exposes the following members.

Methods
  NameDescription
Public methodAddEventListener

Subscribes an event handler to be invoked when the given Corona event name gets dispatched.

It is okay to call this method before the runtime has started. Once started, the runtime will automatically subscribe the given handler to the event.

Public methodDispatchEvent

Dispatches the given Corona event to Lua to be received by a Lua function.

Lua functions can subscribe to the given event via the Lua Runtime:addEventListener() function.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveEventListener

Unsubscribes the given event handler from the specified Corona event.

This method is expected to be called with the same event name and handler arguments passed into the AddEventListener(String, CoronaLuaEventHandler) method.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also