TrackerClient

Used to track the playback of a track.

You can override the following methods to get the track details:

Can be implemented by both:

See also

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getSettingItems(): List<Setting>

List of Settings to be displayed in the settings screen

Link copied to clipboard
open suspend fun onExtensionSelected()

Only called when an extension is selected by the user, not when the extension is loaded Use the onInitialize for doing stuff to initialize the extension

Link copied to clipboard
open suspend fun onInitialize()

Called when the extension is loaded, called after all the injections are done. Only called once

Link copied to clipboard
abstract suspend fun onPlayingStateChanged(details: TrackDetails?, isPlaying: Boolean)

Called when the player changes its playing state or when the position changes.

Link copied to clipboard
abstract suspend fun onTrackChanged(details: TrackDetails?)

Called when the player changes its current track.

Link copied to clipboard
abstract fun setSettings(settings: Settings)

Called when the extension is initialized, to provide the Settings to the extension