Click or drag to resize

AppManagerSetUninstallBlocked Method

Change whether a user can uninstalling a package.

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 SetUninstallBlocked (string packageName, bool uninstallBlocked);

Parameters

packageName
Type: System.String
String The name of the package to change.
uninstallBlocked
Type: System.Boolean
boolean True if the user shouldn't be able to uninstall the package.

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
Change whether a user can uninstalling a package.

[Android Documentation]

See Also

Reference