StaticUtilsAdapter

open class StaticUtilsAdapter

Convenience class to avoid static methods mocking, since Powermock test runner conflicts with Roboelectric.

Constructors

Link copied to clipboard
fun StaticUtilsAdapter()

Types

Link copied to clipboard
annotation class ChargingStateValues
Link copied to clipboard
object Companion
Link copied to clipboard
annotation class LowBatteryValues

Functions

Link copied to clipboard
fun createIntentFilter(intentAction: String?): IntentFilter
Link copied to clipboard
fun generateUuid(): String
Link copied to clipboard
fun getBatteryStatus(context: Context): Int
Link copied to clipboard
fun getErrorResponseBody(error: VolleyError?): String
Link copied to clipboard
fun getNetworkOperatorName(context: Context): String
Link copied to clipboard
fun isBatterySaverEnabled(context: Context): Boolean
Link copied to clipboard
fun isCharging(context: Context): Int
Link copied to clipboard
fun isLocationProvidersEnabled(context: Context): Boolean
Link copied to clipboard
fun isOffline(context: Context): Boolean

Properties

Link copied to clipboard
open val currentTime: String
Link copied to clipboard
val isEmulator: Boolean
Link copied to clipboard
val isNotEmulator: Boolean
Link copied to clipboard
open val uuid: UUID