SoundKey

The short SFX vocabulary a caller draws on for UX feedback.

Each key is synthesised (jvm/ios tone synth) or sampled (android SoundPool) into a sub-second sound. Keys are intentionally coarse — one per feel, not per event — so an app ships a handful of audibly distinct cues and maps its own moments onto them.

Entries

Link copied to clipboard

Firm press/slam — a committing action (confirm, claim, submit).

Link copied to clipboard

Bright clink — a positive/rewarding action (income, credit, reward).

Link copied to clipboard

Heavy thud — a weighty negative action (loss, removal, penalty).

Link copied to clipboard

Triumphant sting — a success fanfare (win, completion, milestone).

Properties

Link copied to clipboard

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

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): SoundKey

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

Link copied to clipboard

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