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
interface DataRequestRepository
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
Link copied to clipboard
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
A constrained model of the Android transport types such as NetworkCapabilities.TRANSPORT_CELLULAR, NetworkCapabilities.TRANSPORT_WIFI, NetworkCapabilities.TRANSPORT_BLUETOOTH.
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.