Package com.zendesk.sdk.power
Class BatteryStateBroadcastReceiver
- java.lang.Object
-
- BroadcastReceiver
-
- com.zendesk.sdk.power.BatteryStateBroadcastReceiver
-
public class BatteryStateBroadcastReceiver extends BroadcastReceiver
Used for tracking battery related events.We are mainly interested in the following states, which will be interrogated whenever we are deciding whether to launch a network request or not.
Intent#ACTION_BATTERY_OKAY
Intent#ACTION_BATTERY_LOW
This
BroadcastReceiver
is registered in the SDK's manifest file. It is designed to provide updates to thePowerConfig
class.- See Also:
- Detecting power states
-
-
Constructor Summary
Constructors Constructor and Description BatteryStateBroadcastReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
onReceive(Context context, Intent intent)
-