NotificationSound

Methods
8
Fields
3

Getting one

NotificationSound.valueOf(…)
NotificationSound.NATIVE
NotificationSound.CUSTOM

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringThis enum's own text for the constant, which can differ from name(); tostring(c) answers the same.
compareTo(NotificationSound)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getName()stringThis constant's getName() value, listed on each constant.
values(){NotificationSound}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOf(string)NotificationSoundvalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
NATIVENotificationSoundNATIVE: ordinal 0; getName() "Native".
CUSTOMNotificationSoundCUSTOM: ordinal 1; getName() "Custom".
OFFNotificationSoundOFF: ordinal 2; getName() "Off".

Returned by

MethodReturnsDescription
ClientConfig.notificationSoundNotificationSoundThe sound notifications play.
Notification.getSoundNotificationSound?The sound it plays.
NotificationSoundClass.valueOfNotificationSoundvalueOf(name): the constant named name; any other name is an error.
NotificationSoundClass.values{NotificationSound}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

Method details

toString

toString: (NotificationSound) -> string

This enum's own text for the constant, which can differ from name(); tostring(c) answers the same.

values

values: () -> {NotificationSound}

Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.