Eight.Message.toastXml

Displays a Toast Notification. What is displayed depends on the type of toast template you pass in. Returns a WinJS.Promise object where complete maps to onactivated and ondismissed and error maps to onfailure.

Example

(code:javascript}
// ... get the toast template and process its nodes to insert the appropriate values ...

Eight.Message.toastXml(templateXml)
.done(function onComplete(e) {
// ... handle toast completed ...
},
function onError(e) {
// ... handle toast errored ...
});
(code:javascript}

Last edited Feb 10, 2013 at 2:31 AM by gotdibbs, version 1

Comments

No comments yet.