Click or drag to resize

AppManagerEnableNotificationChannels Method

Enables or disables a NotificationChannel for a specified 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 EnableNotificationChannels (string packageName, string notificationChannels, bool enabled);

Parameters

packageName
Type: System.String
String A regular expression matching the package names of the applications whose NotificationChannels are to be enabled/disabled.
notificationChannels
Type: System.String
String A regular expression matching the identifiers of the NotificationChannels to be enabled/disabled.
enabled
Type: System.Boolean
boolean Set to false to disable the notification channels, or true to enable them with their original importance.

Return Value

Type: System.Int32
int AppManagerException.SUCCESS if successful, or an error code matching one of the AppManagerException constants.

Exceptions
Exception Condition
AppManagerException if an error occurs and exceptions are enabled through the ErrorManager singleton.
Remarks
Enables or disables a NotificationChannel for a specified application.

The NotificationChannel is identified using its Android identifier.

Regular expressions can be used to enable or disable multiple notification channels and/or applications in a single call:



Examples:

[Android Documentation]

See Also

Reference