Added in API level 33
Builder
class Builder
kotlin.Any | |
↳ | android.net.IpConfiguration.Builder |
Builder used to construct IpConfiguration
objects.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
IpConfiguration |
build() Construct an |
IpConfiguration.Builder |
setHttpProxy(proxyInfo: ProxyInfo?) Set a proxy configuration. |
IpConfiguration.Builder |
Set a static IP configuration. |
Public constructors
Public methods
build
Added in API level 33
fun build(): IpConfiguration
Construct an IpConfiguration
.
Return | |
---|---|
IpConfiguration |
A new IpConfiguration object. This value cannot be null . |
setHttpProxy
Added in API level 33
fun setHttpProxy(proxyInfo: ProxyInfo?): IpConfiguration.Builder
Set a proxy configuration.
Parameters | |
---|---|
proxyInfo |
ProxyInfo?: Proxy configuration. This value may be null . |
Return | |
---|---|
IpConfiguration.Builder |
A Builder object to allow chaining. This value cannot be null . |
setStaticIpConfiguration
Added in API level 33
fun setStaticIpConfiguration(config: StaticIpConfiguration?): IpConfiguration.Builder
Set a static IP configuration.
Parameters | |
---|---|
config |
StaticIpConfiguration?: Static IP configuration. This value may be null . |
Return | |
---|---|
IpConfiguration.Builder |
A Builder object to allow chaining. This value cannot be null . |