Use the chrome.enterprise.deviceAttributes API to read device attributes. Note: This API is only available to extensions force-installed by enterprise policy.
Use the chrome.enterprise.deviceAttributes API to read device attributes. Note: This API is only available to extensions force-installed by enterprise policy. * available since Chrome 46 * https://developer.chrome.com/apps/enterprise.deviceAttributes
(get-device-annotated-location)
Fetches the administrator-annotated Location. If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [annotated-location] where:
|annotated-location| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-annotatedLocation.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceAnnotatedLocation.
Fetches the administrator-annotated Location. If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [annotated-location] where: |annotated-location| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-annotatedLocation. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceAnnotatedLocation.
(get-device-asset-id)
Fetches the administrator-annotated Asset Id. If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [asset-id] where:
|asset-id| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-assetId.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceAssetId.
Fetches the administrator-annotated Asset Id. If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [asset-id] where: |asset-id| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-assetId. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceAssetId.
(get-device-serial-number)
Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [serial-number] where:
|serial-number| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-serialNumber.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceSerialNumber.
Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [serial-number] where: |serial-number| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-serialNumber. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDeviceSerialNumber.
(get-directory-device-id)
Fetches the value of the device identifier of the directory API, that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. If the current user is not affiliated, returns an empty string.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [device-id] where:
|device-id| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-deviceId.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDirectoryDeviceId.
Fetches the value of the device identifier of the directory API, that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. If the current user is not affiliated, returns an empty string. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [device-id] where: |device-id| - https://developer.chrome.com/apps/enterprise.deviceAttributes#property-callback-deviceId. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/enterprise.deviceAttributes#method-getDirectoryDeviceId.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.enterprise.device-attributes namespace.
Taps all valid non-deprecated events in chromex.app.enterprise.device-attributes namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close