getNetworkDetails method

Future<NetworkDetails> getNetworkDetails()

Retrieves the network details of the device's default network. If the user is not affiliated or the device is not connected to a network, runtime.lastError will be set with a failure reason. |callback| : Called with the device's default network's NetworkDetails.

Implementation

Future<NetworkDetails> getNetworkDetails() async {
  var $res = await promiseToFuture<$js.NetworkDetails>(
      $js.chrome.enterprise.networkingAttributes.getNetworkDetails());
  return NetworkDetails.fromJS($res);
}