Interface ITrack
Represents an audio stream with metadata that belongs to an ITrackCollection.
Inherited Members
Namespace: StrixMusic.Sdk.AppModels
Assembly: StrixMusic.Sdk.dll
Syntax
public interface ITrack : ITrackBase, IArtistCollection, IArtistCollectionBase, IPlayableCollectionBase, IArtistCollectionItem, IArtistCollectionItemBase, IPlayableCollectionItem, ICollectionItemBase, IMerged<ICoreArtistCollectionItem>, IEquatable<ICoreArtistCollectionItem>, IMerged<ICoreArtistCollection>, IEquatable<ICoreArtistCollection>, IGenreCollection, IGenreCollectionBase, IMerged<ICoreGenreCollection>, IEquatable<ICoreGenreCollection>, IPlayable, IPlayableBase, IDownloadable, IImageCollection, IImageCollectionBase, IMerged<ICoreImageCollection>, IEquatable<ICoreImageCollection>, IUrlCollection, IUrlCollectionBase, ICollectionBase, IMerged<ICoreUrlCollection>, IEquatable<ICoreUrlCollection>, IAppModel, IMerged<ICoreTrack>, IEquatable<ICoreTrack>, IMerged
Remarks
Instances of this class may contain data merged from one or more sources.
Properties
| Improve this Doc View SourceAlbum
An IAlbum object that this track belongs to.
Declaration
IAlbum? Album { get; }
Property Value
Type | Description |
---|---|
IAlbum |
Lyrics
The lyrics for this track.
Declaration
ILyrics? Lyrics { get; }
Property Value
Type | Description |
---|---|
ILyrics |
RelatedItems
An IPlayableCollectionGroup of items related to this item.
Declaration
IPlayableCollectionGroup? RelatedItems { get; }
Property Value
Type | Description |
---|---|
IPlayableCollectionGroup |
Methods
| Improve this Doc View SourceChangeAlbumAsync(IAlbum?, CancellationToken)
Changes the album for this track.
Declaration
Task ChangeAlbumAsync(IAlbum? album, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IAlbum | album | 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(ILyrics?, CancellationToken)
Changes the Lyrics for this track.
Declaration
Task ChangeLyricsAsync(ILyrics? lyrics, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ILyrics | 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<IAlbum?>? AlbumChanged
Event Type
Type | Description |
---|---|
EventHandler<IAlbum> |
LyricsChanged
Fires when the Lyrics metadata changes.
Declaration
event EventHandler<ILyrics?>? LyricsChanged
Event Type
Type | Description |
---|---|
EventHandler<ILyrics> |