Interface ICoreTrack
Represents an audio stream with metadata that belongs to an ICoreTrackCollection.
Inherited Members
Namespace: StrixMusic.Sdk.CoreModels
Assembly: StrixMusic.Sdk.dll
Syntax
public interface ICoreTrack : ITrackBase, ICoreArtistCollection, ICorePlayableCollection, IArtistCollectionBase, IPlayableCollectionBase, ICoreImageCollection, ICoreUrlCollection, ICoreArtistCollectionItem, IArtistCollectionItemBase, IPlayableCollectionItem, IPlayableBase, IImageCollectionBase, IUrlCollectionBase, ICollectionItemBase, ICoreGenreCollection, ICoreCollection, IGenreCollectionBase, ICollectionBase, ICoreModel
Remarks
This interface should be implemented by a core.
Properties
| Improve this Doc View SourceAlbum
An ICoreAlbum object that this track belongs to.
Declaration
ICoreAlbum? Album { get; }
Property Value
Type | Description |
---|---|
ICoreAlbum |
Lyrics
The lyrics for this track.
Declaration
ICoreLyrics? Lyrics { get; }
Property Value
Type | Description |
---|---|
ICoreLyrics |
RelatedItems
A IPlayableBase of items related to this item.
Declaration
ICorePlayableCollectionGroup? RelatedItems { get; }
Property Value
Type | Description |
---|---|
ICorePlayableCollectionGroup |
Methods
| Improve this Doc View SourceChangeAlbumAsync(ICoreAlbum?, CancellationToken)
Changes the album for this track.
Declaration
Task ChangeAlbumAsync(ICoreAlbum? albums, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ICoreAlbum | albums | The new album. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
ChangeLyricsAsync(ICoreLyrics?, CancellationToken)
Changes the Lyrics for this track.
Declaration
Task ChangeLyricsAsync(ICoreLyrics? lyrics, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ICoreLyrics | lyrics | The new lyrics data. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
Events
| Improve this Doc View SourceAlbumChanged
Fires when the Album metadata changes.
Declaration
event EventHandler<ICoreAlbum?>? AlbumChanged
Event Type
Type | Description |
---|---|
EventHandler<ICoreAlbum> |
LyricsChanged
Fires when the Lyrics metadata changes.
Declaration
event EventHandler<ICoreLyrics?>? LyricsChanged
Event Type
Type | Description |
---|---|
EventHandler<ICoreLyrics> |