AccessoryManager.RegisterAccessoryApp 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.
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
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.