Share via


AccessoryManager.RegisterAccessoryApp Method

Definition

Registers the accessory application with the AccessoryManager and returns the trigger identifier.

public:
 static Platform::String ^ RegisterAccessoryApp();
 static winrt::hstring RegisterAccessoryApp();
public static string RegisterAccessoryApp();
function registerAccessoryApp()
Public Shared Function RegisterAccessoryApp () As String

Returns

String

Platform::String

winrt::hstring

The trigger identifier for this accessory app. This trigger identifier is used to build a DeviceManufacturerNotificationTrigger.

Windows requirements

App capabilities
accessoryManager

Remarks

This API displays a consent dialog box to the use in the following cases:

  • The app is not registered as an accessory app
  • The user has disabled the app via control panel

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

Applies to