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
)
Public Overridable Function SetApplicationEnabledSetting (
packageName As String,
newState As Integer,
flags As Integer
) As Integer
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:
Int32intSuccess in case of success,
otherwise a possible error code, matching one of the
AppManagerException error constants.
Exceptions Remarks See Also