delphirtl • Docs
delphirtl / TMessageManager
TMessageManager enables messaging between different code points.
TMessageManager
new TMessageManager():
TMessageManager
sendMessage<
T
>(aClass
,aMessage
):void
Sends the given message to listeners that subscribes to the given class.
• T extends MessageType
• aClass: SubscriptionIdentifierType
• aMessage: T
void
subscribeToMessage<
T
>(aClass
,aMessageListener
):number
Subscribes to the given class and receives the given message
• T extends MessageType
• aClass: SubscriptionIdentifierType
• aMessageListener
number
unsubscribe(
aClass
,aSubscriptionIndex
):void
Unsubscribes from messages on the given class
• aClass: SubscriptionIdentifierType
• aSubscriptionIndex: number
void
unsubscribeWrappedMessage(
aClass
,aSubscriptionIndex
):void
Unsubscribes from the wrapped message on the given class
• aClass: SubscriptionIdentifierType
• aSubscriptionIndex: number
void
disableType(
aType
):void
• aType: SubscriptionIdentifierType
void
enableType(
aType
):void
• aType: SubscriptionIdentifierType
void
ensureTypeEnabled(
aSuffix
):void
• aSuffix: string
void
reset():
void
void
sendWrappedMessage<
T
>(aClass
,aMessage
):void
Sends a wrapped message to listeners on the given class
• T extends MessageType
• aClass: SubscriptionIdentifierType
• aMessage: TMessage
<T
>
void
subscribeToWrappedMessage<
T
>(aClass
,aMessageListener
):number
Subscribes to the wrapped message on the given class
• T extends MessageType
• aClass: SubscriptionIdentifierType
• aMessageListener
number
typesDisabled():
string
[]
string
[]
static
getDefaultManager():TMessageManager