NetworkSettings

data class NetworkSettings @JvmOverloads constructor(var allowMetered: Boolean, var allowRoaming: Boolean, var allowedNetworkTypes: List<NetworkSettings.NetworkType>, var useSystemDefaults: Boolean = false) : Parcelable

Deprecated

Will be removed in next releases. Do corresponding network checks on application side, if you need to

Class containing information about network settings

Constructors

Link copied to clipboard
fun NetworkSettings(useSystemDefaults: Boolean)
Link copied to clipboard
Link copied to clipboard
fun NetworkSettings(allowMetered: Boolean, allowRoaming: Boolean)
Link copied to clipboard
fun NetworkSettings(allowMetered: Boolean, allowRoaming: Boolean, allowedNetworkTypes: List<NetworkSettings.NetworkType>, useSystemDefaults: Boolean = false)

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

list of allowed network types (WiFi or Mobile network)

Link copied to clipboard

true if metered networks are allowed, false otherwise

Link copied to clipboard

true if using roaming network is allowed, false otherwise

Link copied to clipboard