TileUpdateManager 클래스

정의

시작 메뉴 타일을 변경하고 업데이트하는 데 사용되는 TileUpdater 개체를 만듭니다. 또한 이 클래스는 시스템 제공 타일 템플릿의 XML 콘텐츠에 대한 액세스를 제공하므로 타일 업데이트에 사용할 콘텐츠를 사용자 지정할 수 있습니다.

public ref class TileUpdateManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class TileUpdateManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TileUpdateManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public static class TileUpdateManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class TileUpdateManager
Public Class TileUpdateManager
상속
Object Platform::Object IInspectable TileUpdateManager
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

다음 예제에서는 타일 템플릿의 XML 콘텐츠를 검색하는 데 사용되는 GetTemplateContent 와 앱의 타일에 알림을 보내는 CreateTileUpdaterForApplication 을 보여 줍니다.

function sendTileTextNotification() {
    var Notifications = Windows.UI.Notifications;

    // Get an XML DOM version of a specific template by using getTemplateContent.
    var tileXml = Notifications.TileUpdateManager.getTemplateContent(Notifications.TileTemplateType.tileWide310x150Text03);

    // You will need to look at the template documentation to know how many text fields a particular template has.
    // Get the text attribute for this template and fill it in.
    var tileAttributes = tileXml.getElementsByTagName("text");
    tileAttributes[0].appendChild(tileXml.createTextNode("Hello World!"));

    // Create the notification from the XML.
    var tileNotification = new Notifications.TileNotification(tileXml);

    // Send the notification to the calling app's tile.
    Notifications.TileUpdateManager.createTileUpdaterForApplication().update(tileNotification);
}

설명

정적 팩터리 클래스이며 인스턴스화가 필요하지 않습니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1607 14393 GetForUser

메서드

CreateTileUpdaterForApplication()

호출 앱의 타일 모양을 변경할 수 있는 TileUpdater의 새 instance 만들고 초기화합니다.

CreateTileUpdaterForApplication(String)

호출 앱과 동일한 패키지의 다른 앱에 속하는 타일에 대한 TileUpdater의 새 instance 만들고 초기화합니다. TileUpdater를 사용하면 개발자가 해당 타일의 모양을 변경할 수 있습니다.

CreateTileUpdaterForSecondaryTile(String)

보조 타일의 모양을 변경할 수 있는 TileUpdater의 새 instance 만들고 초기화합니다. 타일은 호출 앱 또는 동일한 패키지의 다른 앱에 속할 수 있습니다.

GetForUser(User)

지정된 사용자에 대한 새 TileUpdateManagerForUser 를 만들고 초기화하여 특정 사용자의 타일 모양이나 콘텐츠를 변경할 수 있습니다.

GetTemplateContent(TileTemplateType)

타일 업데이트를 위해 사용자 지정할 수 있도록 미리 정의된 타일 템플릿 중 하나의 XML 콘텐츠를 가져옵니다.

참고

이 메서드는 Windows 8 시스템에서 호출되면 버전 1 템플릿을 반환합니다. 이 메서드는 Windows 8.1 시스템에서 호출되면 버전 2 템플릿을 반환합니다. 그러나 앱이 매니페스트에서 Windows 8 호환성을 지정하는 경우 이 메서드는 버전 1 템플릿을 반환합니다.

적용 대상

추가 정보