onChange

fun onChange(listener: (String) -> Unit?)

Registers a callback that will be called with the new track name every time it changes. The track name will be prettified ("Modname: Track" instead of "mods/Modname/music/Track.ogg").

Will be called on a background thread, so please decouple UI access on the receiving side.

Sources

jvm source
Link copied to clipboard