AccessoryManager.DisableNotificationsForApplication(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.