Share via


AccessoryManager.DisableNotificationsForApplication(String) Method

Definition

Opt out of getting toast and app uninstall notifications from the specified app.

public:
 static void DisableNotificationsForApplication(Platform::String ^ appId);
 static void DisableNotificationsForApplication(winrt::hstring const& appId);
public static void DisableNotificationsForApplication(string appId);
function disableNotificationsForApplication(appId)
Public Shared Sub DisableNotificationsForApplication (appId As String)

Parameters

appId
String

Platform::String

winrt::hstring

The identifier of the app.

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

Applies to