文档

Unity Engine

Download Unity

Unity Engine

Tile

Represents tile on Windows start screen
阅读时间1 分钟最后更新于 22 天前

Definition

public sealed class Tile

Remarks

This class can be used to create or update secondary tiles on start screen and get instances of tiles to send notifications to them.

Properties

Property

Description

existsWhether secondary tile is pinned to start screen.
hasUserConsentWhether secondary tile was approved (pinned to start screen) or rejected by user.
idA unique string, identifying secondary tile

Static Properties

Property

Description

mainReturns applications main tile

Methods

Method

Description

DeleteShows a request to the user to unpin this secondary tile from the Start screen.
PeriodicBadgeUpdateStarts periodic update of a badge on a tile.
PeriodicUpdateStarts periodic update of a tile.
RemoveBadgeRemove badge from tile.
StopPeriodicBadgeUpdateStops previously started periodic update of a tile.
StopPeriodicUpdateStops previously started periodic update of a tile.
UpdateSends a notification that changes how the tile looks, from an XML document.
UpdateBadgeImageSets or updates badge on a tile to an image.
UpdateBadgeNumberSet or update a badge on a tile to a number.

Static Methods

Method

Description

CreateOrUpdateSecondaryCreates a new secondary tile or updates an existing one.
DeleteSecondaryShows a request to the user to unpin the secondary tile with the specified ID from the Start screen.
ExistsChecks whether a secondary tile is pinned to the start screen.
GetSecondariesGets all secondary tiles.
GetSecondaryReturns the secondary tile, identified by tile id.
GetTemplateGet template XML for tile notification.