Click or drag to resize

AppManagerSetNotificationsEnabledForPackage Method

Call this method to enable/disable the notifications of the given 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 SetNotificationsEnabledForPackage (string packageName, bool enabled);

Parameters

packageName
Type: System.String
String The package of the application for which to enable/disable notifications.
enabled
Type: System.Boolean
boolean True to enable notifications, false to disable.

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 enable/disable the notifications of the given application.

[Android Documentation]

See Also

Reference