-
public class DozeDetector
Utility class for detecting when an Android device enters and leaves various Doze modes April 02, 2019 (c) 2019 David G. Young Apache 2 License
-
-
Method Summary
Modifier and Type Method Description boolean
isInDozeMode(Context context)
boolean
isInLightDozeMode(Context context)
boolean
isInFullDozeMode(Context context)
void
registerDozeCallbacks(Context context, BroadcastReceiver receiver)
String
getLightIdleModeChangeAction()
-
-
Method Detail
-
isInDozeMode
boolean isInDozeMode(Context context)
-
isInLightDozeMode
boolean isInLightDozeMode(Context context)
-
isInFullDozeMode
boolean isInFullDozeMode(Context context)
-
registerDozeCallbacks
void registerDozeCallbacks(Context context, BroadcastReceiver receiver)
-
getLightIdleModeChangeAction
String getLightIdleModeChangeAction()
-
-
-
-