Prefixes
The Sounds Good API follows a clear semantic convention so you can read the code almost like a sentence:
Prefix
Meaning
Returns
Chainable
Set
Configures or assigns a value before / during playback.
The same instance (this
).
โ๏ธ
On
Declares a callback that fires on a lifecycle event.
The same instance (this
).
โ๏ธ
Methods without prefix (Play
, Pause
, Stop
, Resume
)
Immediate action on the audio.
void
โ
๐ ๏ธ Set
prefix
Set
prefixEvery function that starts with Set
stores parameters on the object and returns it so you can keep chaining:
๐ก Create first, set afterwards, finish with play.
๐ On
prefix
On
prefixOnโฆ
methods let you subscribe to events without coroutines or repetitive Invokes:
Last updated