Skip to main content
BadgeUpdateManager.CreateBadgeUpdaterForApplication(String) | createBadgeUpdaterForApplication(String) method

Creates and initializes a new instance of the BadgeUpdater for a specified app tile's badge, usually the tile of another app in the package. The BadgeUpdater lets you change the appearance or content of that badge.

Syntax


var badgeUpdater = Windows.UI.Notifications.BadgeUpdateManager.createBadgeUpdaterForApplication(applicationId);

public static BadgeUpdater CreateBadgeUpdaterForApplication(
  string applicationId
)

Public Shared Function CreateBadgeUpdaterForApplication(
  applicationId As String 
) As BadgeUpdater

public:
static BadgeUpdater^ CreateBadgeUpdaterForApplication(
  String^ applicationId
)

Parameters

applicationId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The unique ID of the tile whose badge you want to update.

Return value

Type: BadgeUpdater

The object you will use to send changes to the application tile's badge.

Remarks

The app identified by applicationId must belong to the same package as the caller.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

BadgeUpdateManager
CreateBadgeUpdaterForApplication
App tiles and badges sample
Guidelines and checklist for tiles and badges
How to clear a badge
How to send a glyph or numeric badge in a local notification
How to set up periodic notifications for badges
How to update a badge through push notifications
Badge XML schema
Badge overview