NetworkRestriction

enum NetworkRestriction

Classify network types based on cost.

Entries

DISALLOW_ALL
Link copied to clipboard

Forbid access to all network types.

DISALLOW_EXPENSIVE
Link copied to clipboard

Forbid network access to expensive networks, such as cellular.

NONE
Link copied to clipboard

Allow access to all network types.

Functions

valueOf
Link copied to clipboard
open fun valueOf(name: String): NetworkRestriction
values
Link copied to clipboard
open fun values(): Array<NetworkRestriction>

Properties

value
Link copied to clipboard
val value: Int