Click or drag to resize

AppManagerSetApplicationEnabledSetting Method

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

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 SetApplicationEnabledSetting(
	string packageName,
	int newState,
	int flags
)

Parameters

packageName
Type: SystemString
- String The package name of the application to enable.
newState
Type: SystemInt32
- int The new enabled state for the application.
flags
Type: SystemInt32
- 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 .

Return Value

Type: Int32
intSuccess in case of success, otherwise a possible error code, matching one of the AppManagerException error constants.
Exceptions
ExceptionCondition
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