SecondaryTile.UpdateAsync | updateAsync method

Applies to Windows and Windows Phone

Updates a secondary tile after that tile is pinned to the Start screen.

  • Applies to Windows Phone

Note  On Windows Phone 8.1, your app is suspended and the user is taken to the Start screen when a secondary tile is pinned. Therefore, be aware that any code called after RequestCreateAsync is not guaranteed to be run before the app is suspended. To avoid this potential issue you should use the OnSuspended event of your app to run any code, such as updating the pinned tile, that should be run before the app suspends. To see an example of this pattern, download and run the Tile update on suspend sample.

Syntax


secondaryTile.updateAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<Boolean>

An object used to launch the asynchronous create operation as well as to retrieve information about it.

Remarks

This method updates the following properties of the secondary tile:

This method does not update these properties:

If the TileId property is not set before you call this method, the call will raise an exception.

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.StartScreen
Windows::UI::StartScreen [C++]

Metadata

Windows.winmd

See also

SecondaryTile
Secondary tiles sample

 

 

Show:
© 2014 Microsoft. All rights reserved.