name
name: (NotificationSound) -> stringThe constant's name as declared.
NotificationSound.valueOf(…)
NotificationSound.NATIVE
NotificationSound.CUSTOM| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | This enum's own text for the constant, which can differ from name(); tostring(c) answers the same. |
compareTo(NotificationSound) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getName() | string | This 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) | NotificationSound | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
NATIVE | NotificationSound | NATIVE: ordinal 0; getName() "Native". |
CUSTOM | NotificationSound | CUSTOM: ordinal 1; getName() "Custom". |
OFF | NotificationSound | OFF: ordinal 2; getName() "Off". |
| Method | Returns | Description |
|---|---|---|
ClientConfig.notificationSound | NotificationSound | The sound notifications play. |
Notification.getSound | NotificationSound? | The sound it plays. |
NotificationSoundClass.valueOf | NotificationSound | valueOf(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. |
namename: (NotificationSound) -> stringThe constant's name as declared.
ordinalordinal: (NotificationSound) -> numberThe constant's 0-based position in values().
toStringtoString: (NotificationSound) -> stringThis enum's own text for the constant, which can differ from name(); tostring(c) answers the same.
compareTocompareTo: (NotificationSound, NotificationSound) -> numberThis ordinal less other's.
equalsequals: (NotificationSound, any) -> booleanWhether other is this constant. == answers the same.
getNamegetName: (NotificationSound) -> stringThis constant's getName() value, listed on each constant.
valuesvalues: () -> {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.
valueOfvalueOf: (string) -> NotificationSoundvalueOf(name): the constant named name; any other name is an error.