WifiManager.DhcpInfo Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the DHCP-assigned addresses from the last successful DHCP request, if any.
public virtual Android.Net.DhcpInfo? DhcpInfo { [Android.Runtime.Register("getDhcpInfo", "()Landroid/net/DhcpInfo;", "GetGetDhcpInfoHandler")] get; }
[<get: Android.Runtime.Register("getDhcpInfo", "()Landroid/net/DhcpInfo;", "GetGetDhcpInfoHandler")>]
member this.DhcpInfo : Android.Net.DhcpInfo
Property Value
the DHCP information
- Attributes
Remarks
Return the DHCP-assigned addresses from the last successful DHCP request, if any.
This member is deprecated. Use the methods on android.net.LinkProperties
which can be obtained either via NetworkCallback#onLinkPropertiesChanged(Network, LinkProperties)
or ConnectivityManager#getLinkProperties(Network)
.
<p> <b>Compatibility Notes:</b> <li>On devices supporting concurrent connections (indicated via #isStaConcurrencyForLocalOnlyConnectionsSupported()
, etc), this API will return the details of the internet providing connection (if any) to all apps, except for the apps that triggered the creation of the concurrent connection. For such apps, this API will return the details of the connection they created. e.g. apps using WifiNetworkSpecifier
will trigger a concurrent connection on supported devices and hence this API will provide details of their peer to peer connection (not the internet providing connection). This is to maintain backwards compatibility with behavior on single STA devices.</li> </p>
Java documentation for android.net.wifi.WifiManager.getDhcpInfo()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.