IpConfiguration.Builder


public static final class IpConfiguration.Builder
extends Object

java.lang.Object
   ↳ android.net.IpConfiguration.Builder


Builder used to construct IpConfiguration objects.

Summary

Public constructors

Builder()

Public methods

IpConfiguration build()

Construct an IpConfiguration.

IpConfiguration.Builder setHttpProxy(ProxyInfo proxyInfo)

Set a proxy configuration.

IpConfiguration.Builder setStaticIpConfiguration(StaticIpConfiguration config)

Set a static IP configuration.

Inherited methods

Public constructors

Builder

Added in API level 33
public Builder ()

Public methods

build

Added in API level 33
public IpConfiguration build ()

Construct an IpConfiguration.

Returns
IpConfiguration A new IpConfiguration object. This value cannot be null.

setHttpProxy

Added in API level 33
public IpConfiguration.Builder setHttpProxy (ProxyInfo proxyInfo)

Set a proxy configuration.

Parameters
proxyInfo ProxyInfo: Proxy configuration. This value may be null.

Returns
IpConfiguration.Builder A Builder object to allow chaining. This value cannot be null.

setStaticIpConfiguration

Added in API level 33
public IpConfiguration.Builder setStaticIpConfiguration (StaticIpConfiguration config)

Set a static IP configuration.

Parameters
config StaticIpConfiguration: Static IP configuration. This value may be null.

Returns
IpConfiguration.Builder A Builder object to allow chaining. This value cannot be null.