InterruptionLevel

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 functions

java-static InterruptionLevel!
valueOf(name: String!)

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

java-static Array<InterruptionLevel!>!

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

Enum Values

DEFAULT

val InterruptionLevel.DEFAULTInterruptionLevel

Default interruption level.

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

HIGH

val InterruptionLevel.HIGHInterruptionLevel

High interruption level.

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

LOW

val InterruptionLevel.LOWInterruptionLevel

Low interruption level.

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

MAX

val InterruptionLevel.MAXInterruptionLevel

Maximum interruption level.

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

MIN

val InterruptionLevel.MINInterruptionLevel

Minimum interruption level.

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

Public functions

valueOf

java-static fun valueOf(name: String!): InterruptionLevel!

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

java-static fun values(): Array<InterruptionLevel!>!

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
Array<InterruptionLevel!>!

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