Notification.Type



Describes the type of the notification. Usually the platform shows a different icon and plays a different sound when notification will be shown to the user.

Summary

Enum Values

Error

Error notification

Info

Info notification

None

Simple notification

Warning

Warning notification

Public functions

Notification.Type
valueOf(value: String)

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

android
Array<Notification.Type>

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

android

Public properties

EnumEntries<Notification.Type>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

android

Enum Values

Error

val Notification.Type.ErrorNotification.Type

Error notification

Info

val Notification.Type.InfoNotification.Type

Info notification

None

val Notification.Type.NoneNotification.Type

Simple notification

Warning

val Notification.Type.WarningNotification.Type

Warning notification

Public functions

valueOf

fun valueOf(value: String): Notification.Type

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.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<Notification.Type>

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.

Public properties

entries

val entriesEnumEntries<Notification.Type>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.