public final class Device extends Object
Modifier and Type | Method and Description |
---|---|
static BatteryStatus |
getBatteryStatus(Context context) |
static JobRequest.NetworkType |
getNetworkType(Context context)
Checks the network condition of the device and returns the best type.
|
static boolean |
isIdle(Context context) |
static boolean |
isStorageLow() |
public static BatteryStatus getBatteryStatus(Context context)
public static boolean isIdle(Context context)
@NonNull public static JobRequest.NetworkType getNetworkType(@NonNull Context context)
context
- Any context, e.g. the application context.public static boolean isStorageLow()