Click or drag to resize

AppManagerSetApplicationEnabledSetting Method

Call this method to set the enable setting for an application.

Namespace:  Com.Datalogic.Decode
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
public virtual int SetApplicationEnabledSetting (string packageName, int newState, int flags);

Parameters

packageName
Type: System.String
String The package name of the application to enable.
newState
Type: System.Int32
int The new enabled state for the application.
flags
Type: System.Int32
int Optional behaviour flags. Value is either 0 or a combination of android.content.pm.PackageManager#DONT_KILL_APP and android.content.pm.PackageManager#SYNCHRONOUS. Not expected values in combinationation with these are ignored. See for more details the Android documentation PackageManager.setApplicationEnabledSetting(String packageName, int newState, int flags) .

Return Value

Type: System.Int32
int AppManagerException.SUCCESS in case of success, otherwise a possible error code, matching one of the AppManagerException error constants.

Exceptions
Exception Condition
AppManagerException in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks
Call this method to set the enable setting for an application.

[Android Documentation]

See Also

Reference