getDirectoryDeviceId method

Future<String> 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. |callback| : Called with the device identifier of the directory API when received.

Implementation

Future<String> getDirectoryDeviceId() async {
  var $res = await promiseToFuture<String>(
      $js.chrome.enterprise.deviceAttributes.getDirectoryDeviceId());
  return $res;
}