See also:

  • com.domwires.core.mvc.message.IMessageDispatcher

Methods

@:value({ priority : 0 })addMessageListener(type:EnumValue, listener:IMessage ‑> Void, priority:Int = 0):Void

Add message listener to specified object. Listens bubbled messages also.

Parameters:

type

EnumValue type

listener

Function that will be called when message received

priority

Int With higher priority will be called earlier

hasMessageListener(type:EnumValue):Bool

Parameters:

type

Message type

Returns:

true if object listens for specific message. Otherwise returns false.

removeMessageListener(type:EnumValue, listener:IMessage ‑> Void):Void

Removes message listener from object. Bubbled messages will be also ignored.

Parameters:

type

EnumValue type

listener

Function that will be called when message received