ToastCallbackTemplate is a template showing how to define an event handler for a "click" event happening in a toast created with MsgPlus::DisplayToast or MsgPlus::DisplayToastContact. The handler can have any function name and many different handlers can be defined for toasts.
ToastCallbackTemplate( [var] Param );
No value has to be returned by this event.
The handler is never called if the user does not click on the toast before it disappears.
A toast is displayed with the following call:
MsgPlus.DisplayToast("", "Something happened!\nClick for more information.", "", "OnSomethingHappenedClick", 42);
When the user clicks on the toast, the event is handled by the following handler.
function OnSomethingHappenedClick(Param) { Debug.Trace("The toast was clicked. Parameter: " + Param); }
Event Source | Messenger Plus! |
---|---|
Availability | Messenger Plus! Live 4.00 |
Messenger Plus! Events, MsgPlus::DisplayToast, MsgPlus::DisplayToastContact.