NetworkInfo

abstract class NetworkInfo


Device network info.

Summary

Nested types

abstract class NetworkInfo.Builder

Builder for NetworkInfo.

Information about a network.

Builder for NetworkInfo.NetworkParams.

Transport used on the network.

Whether private DNS is used on the network.

Level of security on a Wi-Fi network.

Public functions

java-static NetworkInfo.Builder!
java-static NetworkInfo!
abstract ImmutableList<NetworkInfo.NetworkParams!>!

Information about all networks on the device.

Metadata!

Metadata about network params.

Boolean

Returns true if networkParamsMetadata is set.

abstract NetworkInfo.Builder!

Public functions

builder

java-static fun builder(): NetworkInfo.Builder!

getDefaultInstance

java-static fun getDefaultInstance(): NetworkInfo!

getNetworkParams

abstract fun getNetworkParams(): ImmutableList<NetworkInfo.NetworkParams!>!

Information about all networks on the device.

getNetworkParamsMetadata

fun getNetworkParamsMetadata(): Metadata!

Metadata about network params.

hasNetworkParamsMetadata

fun hasNetworkParamsMetadata(): Boolean

Returns true if networkParamsMetadata is set.

toBuilder

abstract fun toBuilder(): NetworkInfo.Builder!