Package-level declarations

Types

Link copied to clipboard
data class DataRequest(val requestType: RequestType, val networkInfo: NetworkInfo, val dataBytes: Long, val time: Instant = Instant.now())
Link copied to clipboard

A Data Request Repository for recording network data usage including RequestType and NetworkType.

Link copied to clipboard
data class DataUsageReport(val dataByType: Map<NetworkType, Long>, val from: Instant, val to: Instant)
Link copied to clipboard

Simple In-memory implementation of Data Request Repository for recording network data usage.

Link copied to clipboard
sealed interface NetworkInfo
Link copied to clipboard
data class Networks(val activeNetwork: NetworkStatus?, val networks: List<NetworkStatus>)

A data class for the full current state of the interesting parts of ConnectivityManager.

Link copied to clipboard
data class NetworkStatus(val id: String, val status: Status, val networkInfo: NetworkInfo, val addresses: List<InetAddress>, val capabilities: NetworkCapabilities?, val linkProperties: LinkProperties?, val bindSocket: (Socket) -> Unit)
Link copied to clipboard
Link copied to clipboard
interface RequestType

An open domain model for RequestTypes in a typical Wear application. Allows decisions such as suitable networks to be made based on the traffic.

Link copied to clipboard
sealed class Status