to top
Datalogic APIs
public final enum

DoNotDisturbPolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.configuration.DoNotDisturbPolicy

Class Overview

Enum DoNotDisturbPolicy defines the policy for Do Not Disturb. It's used by property DO_NOT_DISTURB_POLICY.

Summary

Enum Values
DoNotDisturbPolicy  OFF  Do not disturb is disabled, no notifications are suppressed. 
DoNotDisturbPolicy  SHOW_ALARMS  Do Not Disturb is enabled, all notifications are suppressed except Alarms. 
DoNotDisturbPolicy  SHOW_FILTERED  Do Not Disturb is enabled, it's the standard policy used by Android Settings. 
DoNotDisturbPolicy  SHOW_NONE  Do Not Disturb is enabled, all notifications are suppressed. 
Public Methods
static DoNotDisturbPolicy fromInt(int id)
Retrieves the corresponding DoNotDisturbPolicy value, from a valid integer.
int toInt()
Retrieves the corresponding int value.
static DoNotDisturbPolicy valueOf(String name)
final static DoNotDisturbPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DoNotDisturbPolicy OFF

Added in revision 40

Do not disturb is disabled, no notifications are suppressed.

public static final DoNotDisturbPolicy SHOW_ALARMS

Added in revision 40

Do Not Disturb is enabled, all notifications are suppressed except Alarms.

public static final DoNotDisturbPolicy SHOW_FILTERED

Added in revision 40

Do Not Disturb is enabled, it's the standard policy used by Android Settings.
All notifications are suppressed except those that are in the exclusion filter. The filter can be configured by Android Settings under Notification menu or by NotificationManager service.

public static final DoNotDisturbPolicy SHOW_NONE

Added in revision 40

Do Not Disturb is enabled, all notifications are suppressed.

Public Methods

public static DoNotDisturbPolicy fromInt (int id)

Added in revision 40

Retrieves the corresponding DoNotDisturbPolicy value, from a valid integer.

Parameters
id int
Returns
  • Type the corresponding one.

public int toInt ()

Added in revision 40

Retrieves the corresponding int value.

Returns
  • int

public static DoNotDisturbPolicy valueOf (String name)

Added in revision 40

public static final DoNotDisturbPolicy[] values ()

Added in revision 40