Share via


AccessoryManager.IsNotificationEnabledForApplication(String) Method

Definition

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

Boolean

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.

Applies to