AccessoryManager.IsNotificationEnabledForApplication(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.
Gets a value indicating whether the calling accessory application will receive toast notifications from the specified application.
public:
static bool IsNotificationEnabledForApplication(Platform::String ^ appId);
static bool IsNotificationEnabledForApplication(winrt::hstring const& appId);
public static bool IsNotificationEnabledForApplication(string appId);
function isNotificationEnabledForApplication(appId)
Public Shared Function IsNotificationEnabledForApplication (appId As String) As Boolean
Parameters
- appId
-
String
Platform::String
winrt::hstring
The identifier of the application.
Returns
bool
Returns true if the application supports notifications, otherwise false.
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.