Click or drag to resize
CoronaRuntimeEnvironmentRemoveEventListener Method

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.

Namespace: CoronaLabs.Corona.WinRT
Assembly: CoronaLabs (in CoronaLabs.dll) Version: 255.255.255.255
Syntax
public bool RemoveEventListener(
	string eventName,
	CoronaLuaEventHandler eventHandler
)

Parameters

eventName
Type: SystemString

The name of the Corona event to unsubscribe from such as "system", "enterFrame", etc.

The given event name cannot be null/empty or else an exception will be thrown.

eventHandler
Type: CoronaLabs.Corona.WinRTCoronaLuaEventHandler

Reference to the handler that was previously given to the AddEventListener(String, CoronaLuaEventHandler) method.

Cannot be null or else an exception will be thrown.

Return Value

Type: Boolean

Returns true if the event handler was successfully unsubscribed from the Corona event.

Returns false if the given event handler reference was not previously subscribed to the given event name.

See Also