AppManagerAddBatteryOptimizationExemption Method |
Call this method to place the given application package on the device's power allowlist.
Namespace:
Com.Datalogic.Device.App
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public virtual int AddBatteryOptimizationExemption(
string packageName
)
Public Overridable Function AddBatteryOptimizationExemption (
packageName As String
) As Integer
Parameters
- packageName
- Type: SystemString
- String The name of the package to be added to the device's power allowlist.
Return Value
Type:
Int32intSuccess in case of success,
otherwise a possible error code, matching one of the
AppManagerException error constants.
Exceptions Remarks See Also