MusicExtension

data class MusicExtension(val metadata: Metadata, val instance: Injectable<ExtensionClient>) : Extension<ExtensionClient>

A data class representing a Music Extension. If some function is not supported by the extension, it should throw a ClientException.

Music Extension supports the following types of clients:

Feed

To show feed of media items on main screen, the extension should implement the following clients:

Track Streaming

When streaming a track, the extension can implement the following clients:

Media Items

To load media items, the extension should implement the following clients:

Library

To allow library functionality, The extension can implement the following clients:

Tracking and Lyrics

Playlist Editing

To allow playlist editing, The extension can implement the following clients:

Providers

The extension can also implement the following providers:

Parameters

metadata

The metadata of the extension

instance

An injectable instance of the ExtensionClient client

Constructors

Link copied to clipboard
constructor(metadata: Metadata, instance: Injectable<ExtensionClient>)

Properties

Link copied to clipboard
val id: String

The id of the extension

Link copied to clipboard
open override val instance: Injectable<ExtensionClient>
Link copied to clipboard

Whether the extension is enabled

Link copied to clipboard
open override val metadata: Metadata
Link copied to clipboard

The name of the extension

Link copied to clipboard

The type of the extension

Link copied to clipboard

The version of the extension