編輯

共用方式為


Device Permission Service requirement sets

Requirement sets are named groups of API members. Office Add-ins use requirement sets specified in the manifest or use a runtime check to determine whether an Office application supports APIs that an add-in needs. For more information, see Office versions and requirement sets.

With the Device Permissions Service requirement set, your add-in can request access to a user's device capabilities. A user's device capabilities include their camera, geolocation, or microphone.

Office Add-ins run across multiple versions of Office. The following table lists the Device Permission Service requirement sets, its supported Office client applications, and the minimum builds or versions for those applications, where applicable.

Requirement set Office on the web Office on Windows
  • Microsoft 365 subscription
  • retail perpetual
  • volume-licensed perpetual
Office on Mac Office on iOS Outlook on Android
DevicePermissionService 1.1 Chromium-based browsers* new Outlook on Windows Not supported Not supported Not supported

Note

* DevicePermissionService 1.1 is supported in Office on the web running in Chromium-based browsers, such as Microsoft Edge and Google Chrome.

Office Common API requirement sets

For information about Common API requirement sets, see Office Common API requirement sets.

DevicePermissionService 1.1

For details about the API, see Office.DevicePermission.

See also