Eight.Message.scheduleToastXml

Displays a Toast Notification. What is displayed depends on the type of toast template you pass in. Also required is the scheduledTime parameter. The remaining options are optional for scheduling snooze intervals. Returns a WinJS.Promise object where complete is immediately invoked after the toast is scheduled and not when it is displayed.

Example

// ... get the toast template and process its nodes to insert the appropriate values ...

Eight.Message.toastXml(templateXml, scheduledDateTime, 60, 5)
    .done(function onComplete(e) {
        // ... handle toast completed ...
    },
    function onError(e) {
        // ... handle toast errored ...
    });

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

Comments

No comments yet.