Click or drag to resize

DLBatteryManagerRemoveBatteryEventListener Method

Unregisters a IBatteryEventListener

Namespace:  Com.Datalogic.Device.Battery
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public int RemoveBatteryEventListener(
	IBatteryEventListener listener
)

Parameters

listener
Type: Com.Datalogic.Device.BatteryIBatteryEventListener
- The IBatteryEventListener that will be no more notified.

Return Value

Type: Int32
intSuccess in case of success, otherwise a possible error code, matching one of the BatteryException error constants.
Exceptions
ExceptionCondition
BatteryException - in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks

Unregisters a IBatteryEventListener

associated with the BatteryManager.

[Android Documentation]

See Also