NetworkSettings

data class NetworkSettings(var allowMetered: Boolean, var allowRoaming: Boolean, var allowedNetworkTypes: List<NetworkSettings.NetworkType>) : Parcelable

Class containing information about network settings

Constructors

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>)

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