Class AndroidPowerConnectionChangeBroadcastReceiver
Inheritance
System.Object
AndroidPowerConnectionChangeBroadcastReceiver
Namespace: Sensus.Android
Assembly: SensusAndroid.dll
Syntax
public class AndroidPowerConnectionChangeBroadcastReceiver : BroadcastReceiver
Constructors
AndroidPowerConnectionChangeBroadcastReceiver()
Declaration
public AndroidPowerConnectionChangeBroadcastReceiver()
Methods
OnReceive(Context, Intent)
Declaration
public override void OnReceive(Context context, Intent intent)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | |
Android.Content.Intent | intent |
Events
POWER_CONNECTION_CHANGED
Occurs when the phone is either plugged into (true) or removed from (false) an external power source.
Declaration
public static event EventHandler<bool> POWER_CONNECTION_CHANGED
Event Type
Type | Description |
---|---|
System.EventHandler<System.Boolean> |