TileUpdater.RemoveFromSchedule | removeFromSchedule method

Applies to Windows and Windows Phone

Removes an upcoming tile update from the schedule.

Syntax


tileUpdater.removeFromSchedule(scheduledTile);

Parameters

scheduledTile

Type: ScheduledTileNotification

The notification to remove from the schedule.

Examples

The following example shows the use of the RemoveFromSchedule method.



var notifier = Notifications.TileUpdateManager.createTileUpdaterForApplication();
var scheduled = notifier.getScheduledTileNotifications();

for (var i = 0, len = scheduled.length; i < len; i++) {
    
    // The itemId value is the unique ScheduledTileNotification.Id assigned to the 
    // notification when it was created.
    if (scheduled[i].id === itemId) {
        notifier.removeFromSchedule(scheduled[i]);
    }
}

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Notifications
Windows::UI::Notifications [C++]

Metadata

Windows.winmd

See also

TileUpdater
App tiles and badges sample
Scheduled notifications sample
Guidelines and checklist for scheduled notifications
Quickstart: Sending a tile update
Tile and tile notification overview
The tile template catalog
Guidelines and checklist for tiles
How to schedule a tile notification
How to set up periodic notifications for tiles
Tiles XML schema

 

 

Show:
© 2014 Microsoft