Click or drag to resize

BatteryExceptionContextUnknown Field

This error happens when the registration to receive battery events AddBatteryEventListener(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 const int ContextUnknown = 2

Field Value

Type: Int32
Remarks

This error happens when the registration to receive battery events AddBatteryEventListener(IBatteryEventListener)

is done without having called [!:Com.Datalogic.Device.Battery.DLBatteryManager.initBatteryEvents(Context)]

.

[Android Documentation]

See Also