Package com.zendesk.sdk.power
Class BatteryStateBroadcastReceiver
- java.lang.Object
-
- BroadcastReceiver
-
- com.zendesk.sdk.power.BatteryStateBroadcastReceiver
-
public class BatteryStateBroadcastReceiver extends BroadcastReceiverUsed 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_OKAYIntent#ACTION_BATTERY_LOW
This
BroadcastReceiveris registered in the SDK's manifest file. It is designed to provide updates to thePowerConfigclass.- 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 voidonReceive(Context context, Intent intent)
-