string optional
The device's local IPv4 address (undefined if not configured).
string optional
The device's local IPv6 address (undefined if not configured).
string
The device's MAC address.
chrome.enterprise.networkingAttributes.getNetworkDetails(
callback?: function,
)
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.
function optional
The callback
parameter looks like: (networkAddresses: NetworkDetails) => void
Promise<NetworkDetails>
Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-19 UTC.