InterruptionLevel

public enum InterruptionLevel


An enum specifying the level of interruption of a notification when it is created.

Summary

Enum Values

DEFAULT

Default interruption level.

HIGH

High interruption level.

LOW

Low interruption level.

MAX

Maximum interruption level.

MIN

Minimum interruption level.

Public methods

static InterruptionLevel

Returns the enum constant of this type with the specified name.

static InterruptionLevel[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

DEFAULT

InterruptionLevel InterruptionLevel.DEFAULT

Default interruption level.

Translates to IMPORTANCE_DEFAULT on Android O+ and PRIORITY_DEFAULT on older platforms.

HIGH

InterruptionLevel InterruptionLevel.HIGH

High interruption level.

Translates to IMPORTANCE_HIGH on Android O+ and PRIORITY_HIGH on older platforms.

LOW

InterruptionLevel InterruptionLevel.LOW

Low interruption level.

Translates to IMPORTANCE_LOW on Android O+ and PRIORITY_LOW on older platforms.

MAX

InterruptionLevel InterruptionLevel.MAX

Maximum interruption level.

Translates to IMPORTANCE_HIGH on Android O+ and PRIORITY_MAX on older platforms.

MIN

InterruptionLevel InterruptionLevel.MIN

Minimum interruption level.

Translates to IMPORTANCE_MIN on Android O+ and PRIORITY_MIN on older platforms.

Public methods

valueOf

public static InterruptionLevel valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
InterruptionLevel

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static InterruptionLevel[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
InterruptionLevel[]

an array containing the constants of this enum type, in the order they're declared