Skip to content

Most visited

Recently visited

navigation
Added in API level 1

DhcpInfo

public class DhcpInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.net.DhcpInfo


A simple object for retrieving the results of a DHCP request.

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public int dns1

public int dns2

public int gateway

public int ipAddress

public int leaseDuration

public int netmask

public int serverAddress

Public constructors

DhcpInfo()

Public methods

String toString()

Returns a string containing a concise, human-readable description of this object.

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Fields

dns1

Added in API level 1
int dns1

dns2

Added in API level 1
int dns2

gateway

Added in API level 1
int gateway

ipAddress

Added in API level 1
int ipAddress

leaseDuration

Added in API level 1
int leaseDuration

netmask

Added in API level 1
int netmask

serverAddress

Added in API level 1
int serverAddress

Public constructors

DhcpInfo

Added in API level 1
DhcpInfo ()

Public methods

toString

Added in API level 1
String toString ()

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

   getClass().getName() + '@' + Integer.toHexString(hashCode())

See Writing a useful toString method if you intend implementing your own toString method.

Returns
String a printable representation of this object.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.