Class PlayableCollectionGroupPluginWrapperBase
Wraps an instance of IPlayableCollectionGroup with the provided plugins.
Inheritance
Implements
Inherited Members
Namespace: StrixMusic.Sdk.PluginModels
Assembly: StrixMusic.Sdk.dll
Syntax
public abstract class PlayableCollectionGroupPluginWrapperBase : IPlayableCollectionGroup, IPlayableCollectionGroupBase, IPlaylistCollection, IPlaylistCollectionBase, IPlaylistCollectionItem, IPlaylistCollectionItemBase, IMerged<ICorePlaylistCollectionItem>, IEquatable<ICorePlaylistCollectionItem>, IMerged<ICorePlaylistCollection>, IEquatable<ICorePlaylistCollection>, ITrackCollection, ITrackCollectionBase, IMerged<ICoreTrackCollection>, IEquatable<ICoreTrackCollection>, IAlbumCollection, IAlbumCollectionBase, IAlbumCollectionItem, IAlbumCollectionItemBase, IMerged<ICoreAlbumCollectionItem>, IEquatable<ICoreAlbumCollectionItem>, IMerged<ICoreAlbumCollection>, IEquatable<ICoreAlbumCollection>, IArtistCollection, IArtistCollectionBase, IArtistCollectionItem, IArtistCollectionItemBase, IMerged<ICoreArtistCollectionItem>, IEquatable<ICoreArtistCollectionItem>, IMerged<ICoreArtistCollection>, IEquatable<ICoreArtistCollection>, IPlayableCollectionGroupChildren, IPlayableCollectionGroupChildrenBase, IPlayableCollectionBase, IPlayableCollectionItem, ICollectionItemBase, IMerged<ICorePlayableCollectionGroupChildren>, IEquatable<ICorePlayableCollectionGroupChildren>, IPlayable, IPlayableBase, IDownloadable, IImageCollection, IImageCollectionBase, IMerged<ICoreImageCollection>, IEquatable<ICoreImageCollection>, IUrlCollection, IUrlCollectionBase, ICollectionBase, IMerged<ICoreUrlCollection>, IEquatable<ICoreUrlCollection>, IAppModel, IMerged<ICorePlayableCollectionGroup>, IEquatable<ICorePlayableCollectionGroup>, IMerged
Properties
| Improve this Doc View SourceAddedAt
The date this item was added to a collection. If unknown, value is null.
Declaration
public DateTime? AddedAt { get; }
Property Value
Type | Description |
---|---|
DateTime? |
Remarks
This property has no counterpart "changed" events or supporting properties. Since the item must be added to a collection for the data to change, a new instance with updated data would be used.
Description
Provides comments about the item. This may contain markdown content.
Declaration
public string? Description { get; }
Property Value
Type | Description |
---|---|
string |
DownloadInfo
Information about downloading this item.
Declaration
public DownloadInfo DownloadInfo { get; }
Property Value
Type | Description |
---|---|
DownloadInfo |
Duration
How long the playable item takes to complete playback.
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Remarks
If not applicable, use Zero.
Id
The ID of the playable item.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
IsChangeDescriptionAsyncAvailable
If true, ChangeDescriptionAsync(string?, CancellationToken) can be used.
Declaration
public bool IsChangeDescriptionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsChangeDurationAsyncAvailable
If true, ChangeDurationAsync(TimeSpan, CancellationToken) can be used.
Declaration
public bool IsChangeDurationAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsChangeNameAsyncAvailable
If true, ChangeNameAsync(string, CancellationToken) can be used.
Declaration
public bool IsChangeNameAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPauseAlbumCollectionAsyncAvailable
If true, PauseAlbumCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPauseAlbumCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPauseArtistCollectionAsyncAvailable
If true, PauseArtistCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPauseArtistCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPausePlaylistCollectionAsyncAvailable
If true, PausePlaylistCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPausePlaylistCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPauseTrackCollectionAsyncAvailable
If true, PauseTrackCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPauseTrackCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPlayAlbumCollectionAsyncAvailable
If true, PlayAlbumCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPlayAlbumCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPlayArtistCollectionAsyncAvailable
If true, PlayArtistCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPlayArtistCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPlayPlaylistCollectionAsyncAvailable
If true, PlayPlaylistCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPlayPlaylistCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsPlayTrackCollectionAsyncAvailable
If true, PlayTrackCollectionAsync(CancellationToken) can be used.
Declaration
public bool IsPlayTrackCollectionAsyncAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
LastPlayed
The last time the item was played. If never played or unknown, value is null.
Declaration
public DateTime? LastPlayed { get; }
Property Value
Type | Description |
---|---|
DateTime? |
Name
Name of the playable item.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
PlaybackState
Current playback state.
Declaration
public PlaybackState PlaybackState { get; }
Property Value
Type | Description |
---|---|
PlaybackState |
TotalAlbumItemsCount
The total number of available Albums.
Declaration
public int TotalAlbumItemsCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalArtistItemsCount
The total number of available Artists.
Declaration
public int TotalArtistItemsCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalChildrenCount
The total number of available Children.
Declaration
public int TotalChildrenCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalImageCount
The total number of images in the collection.
Declaration
public int TotalImageCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalPlaylistItemsCount
The total number of available Playlists.
Declaration
public int TotalPlaylistItemsCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalTrackCount
The total number of available Tracks.
Declaration
public int TotalTrackCount { get; }
Property Value
Type | Description |
---|---|
int |
TotalUrlCount
The total number of urls in this collection.
Declaration
public int TotalUrlCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceAddAlbumItemAsync(IAlbumCollectionItem, int, CancellationToken)
Adds an IAlbum or IAlbumCollection to this album collection.
Declaration
public Task AddAlbumItemAsync(IAlbumCollectionItem albumItem, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IAlbumCollectionItem | albumItem | The album to add. |
int | index | the position to insert the album at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddArtistItemAsync(IArtistCollectionItem, int, CancellationToken)
Adds an IArtist or IArtistCollection to this artist collection.
Declaration
public Task AddArtistItemAsync(IArtistCollectionItem artistItem, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IArtistCollectionItem | artistItem | The artistItem to add. |
int | index | the position to insert the artistItem at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddChildAsync(IPlayableCollectionGroup, int, CancellationToken)
Adds a new child to the collection on the backend.
Declaration
public Task AddChildAsync(IPlayableCollectionGroup child, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPlayableCollectionGroup | child | The child to create. |
int | index | the position to insert the child at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddImageAsync(IImage, int, CancellationToken)
Adds a new image to the collection.
Declaration
public Task AddImageAsync(IImage image, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IImage | image | The image to add. |
int | index | the position to insert the image at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddPlaylistItemAsync(IPlaylistCollectionItem, int, CancellationToken)
Adds an IPlaylist or IPlaylistCollection to this playlist collection.
Declaration
public Task AddPlaylistItemAsync(IPlaylistCollectionItem playlistItem, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPlaylistCollectionItem | playlistItem | The playlistItem to add. |
int | index | the position to insert the playlistItem at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddTrackAsync(ITrack, int, CancellationToken)
Adds an ITrack to this track collection.
Declaration
public Task AddTrackAsync(ITrack track, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ITrack | track | The track to add. |
int | index | the position to insert the track at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
AddUrlAsync(IUrl, int, CancellationToken)
Adds a new url to the collection.
Declaration
public Task AddUrlAsync(IUrl url, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IUrl | url | The url to insert. |
int | index | the position to insert the url at. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
ChangeDescriptionAsync(string?, CancellationToken)
Changes the Description for this item.
Declaration
public Task ChangeDescriptionAsync(string? description, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | description | The new description for this playable item. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
ChangeDurationAsync(TimeSpan, CancellationToken)
Changes the Duration for this item.
Declaration
public Task ChangeDurationAsync(TimeSpan duration, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | The new duration for this playable item. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
ChangeNameAsync(string, CancellationToken)
Changes the Name of this playable item.
Declaration
public Task ChangeNameAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | The new name to use. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
Equals(ICoreAlbumCollection?)
Declaration
public bool Equals(ICoreAlbumCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreAlbumCollection | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreAlbumCollectionItem?)
Declaration
public bool Equals(ICoreAlbumCollectionItem? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreAlbumCollectionItem | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreArtistCollection?)
Declaration
public bool Equals(ICoreArtistCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreArtistCollection | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreArtistCollectionItem?)
Declaration
public bool Equals(ICoreArtistCollectionItem? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreArtistCollectionItem | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreImageCollection?)
Declaration
public bool Equals(ICoreImageCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreImageCollection | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICorePlayableCollectionGroup?)
Declaration
public bool Equals(ICorePlayableCollectionGroup? other)
Parameters
Type | Name | Description |
---|---|---|
ICorePlayableCollectionGroup | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICorePlayableCollectionGroupChildren?)
Declaration
public bool Equals(ICorePlayableCollectionGroupChildren? other)
Parameters
Type | Name | Description |
---|---|---|
ICorePlayableCollectionGroupChildren | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICorePlaylistCollection?)
Declaration
public bool Equals(ICorePlaylistCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICorePlaylistCollection | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICorePlaylistCollectionItem?)
Declaration
public bool Equals(ICorePlaylistCollectionItem? other)
Parameters
Type | Name | Description |
---|---|---|
ICorePlaylistCollectionItem | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreTrackCollection?)
Declaration
public bool Equals(ICoreTrackCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreTrackCollection | other |
Returns
Type | Description |
---|---|
bool |
Equals(ICoreUrlCollection?)
Declaration
public bool Equals(ICoreUrlCollection? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreUrlCollection | other |
Returns
Type | Description |
---|---|
bool |
GetAlbumItemsAsync(int, int, CancellationToken)
Gets a requested number of IAlbumCollectionItemBases starting at the given offset in the backend.
Declaration
public IAsyncEnumerable<IAlbumCollectionItem> GetAlbumItemsAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IAlbumCollectionItem> | The requested range of items. |
GetArtistItemsAsync(int, int, CancellationToken)
Gets a requested number of IArtists starting at the given offset.
Declaration
public IAsyncEnumerable<IArtistCollectionItem> GetArtistItemsAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IArtistCollectionItem> | The requested range of items. |
GetChildrenAsync(int, int, CancellationToken)
Gets a requested number of IPlayableCollectionGroupBases starting at the given offset.
Declaration
public IAsyncEnumerable<IPlayableCollectionGroup> GetChildrenAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IPlayableCollectionGroup> | The requested range of items. |
GetImagesAsync(int, int, CancellationToken)
Gets a requested number of IImageBases starting at the given offset.
Declaration
public IAsyncEnumerable<IImage> GetImagesAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IImage> | The requested range of items. |
GetPlaylistItemsAsync(int, int, CancellationToken)
Gets a requested number of IPlaylistCollectionItemBases starting at the given offset.
Declaration
public IAsyncEnumerable<IPlaylistCollectionItem> GetPlaylistItemsAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IPlaylistCollectionItem> | The requested range of items. |
GetTracksAsync(int, int, CancellationToken)
Gets a requested number of ITracks starting at the given offset.
Declaration
public IAsyncEnumerable<ITrack> GetTracksAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<ITrack> | The requested range of items. |
GetUrlsAsync(int, int, CancellationToken)
Gets a requested number of IUrlBases starting at the given offset.
Declaration
public IAsyncEnumerable<IUrl> GetUrlsAsync(int limit, int offset, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | limit | The max number of items to return. |
int | offset | Get items starting at this index. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IUrl> | The requested range of items. |
IsAddAlbumItemAvailableAsync(int, CancellationToken)
Checks if the backend supports adding an IAlbumCollectionItemBase at a specific index.
Declaration
public Task<bool> IsAddAlbumItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new IAlbumCollectionItemBase can be added. |
IsAddArtistItemAvailableAsync(int, CancellationToken)
Checks if the backend supports adding an IArtistCollectionItemBase at a specific index.
Declaration
public Task<bool> IsAddArtistItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new IArtistCollectionItemBase can be added. |
IsAddChildAvailableAsync(int, CancellationToken)
Checks if the backend supports adding an IPlayableCollectionGroupBase at a specific index.
Declaration
public Task<bool> IsAddChildAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, an item can be added. |
IsAddImageAvailableAsync(int, CancellationToken)
Checks if adding a IImageBase to the collection at at the given index
is supported.
Declaration
public Task<bool> IsAddImageAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new IImageBase can be added. |
IsAddPlaylistItemAvailableAsync(int, CancellationToken)
Checks if the backend supports adding an IPlaylistCollectionItemBase at a specific index.
Declaration
public Task<bool> IsAddPlaylistItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new IPlaylistCollectionItemBase can be added. |
IsAddTrackAvailableAsync(int, CancellationToken)
Checks if the backend supports adding an ITrackBase at a specific index.
Declaration
public Task<bool> IsAddTrackAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new ITrackBase can be added. |
IsAddUrlAvailableAsync(int, CancellationToken)
Checks if adding a url to the collection at at the given index
is supported.
Declaration
public Task<bool> IsAddUrlAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, a new item can be added to the collection. |
IsRemoveAlbumItemAvailableAsync(int, CancellationToken)
Checks if the backend supports removing an IAlbumCollectionItemBase at a specific index.
Declaration
public Task<bool> IsRemoveAlbumItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the IAlbumCollectionItemBase can be removed. |
IsRemoveArtistItemAvailableAsync(int, CancellationToken)
Checks if the backend supports removing an IArtist at a specific index.
Declaration
public Task<bool> IsRemoveArtistItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the IArtistCollectionItemBase can be removed. |
IsRemoveChildAvailableAsync(int, CancellationToken)
Checks if the backend supports removing an IPlayableCollectionGroupBase at a specific index.
Declaration
public Task<bool> IsRemoveChildAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the item can be removed. |
IsRemoveImageAvailableAsync(int, CancellationToken)
Checks if removing a IImageBase to the collection at at the given index
is supported.
Declaration
public Task<bool> IsRemoveImageAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the IImageBase can be removed. |
IsRemovePlaylistItemAvailableAsync(int, CancellationToken)
Checks if the backend supports removing an IPlaylistCollectionItemBase at a specific index.
Declaration
public Task<bool> IsRemovePlaylistItemAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the IPlaylistCollectionItemBase can be removed. |
IsRemoveTrackAvailableAsync(int, CancellationToken)
Checks if the backend supports removing an ITrackBase at a specific index.
Declaration
public Task<bool> IsRemoveTrackAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the ITrackBase can be removed. |
IsRemoveUrlAvailableAsync(int, CancellationToken)
Checks if removing a url to the collection at at the given index
is supported.
Declaration
public Task<bool> IsRemoveUrlAvailableAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> | A Task representing the asynchronous operation. If value is true, the item can be removed from the collection.. |
PauseAlbumCollectionAsync(CancellationToken)
Attempts to pause the album collection.
Declaration
public Task PauseAlbumCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PauseArtistCollectionAsync(CancellationToken)
Attempts to pause the Artist collection.
Declaration
public Task PauseArtistCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PausePlayableCollectionGroupAsync(CancellationToken)
Attempts to play the playable collection. Resumes if paused.
Declaration
public Task PausePlayableCollectionGroupAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PausePlaylistCollectionAsync(CancellationToken)
Attempts to pause the Playlist collection.
Declaration
public Task PausePlaylistCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PauseTrackCollectionAsync(CancellationToken)
Attempts to pause the Track collection.
Declaration
public Task PauseTrackCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayAlbumCollectionAsync(IAlbumCollectionItem, CancellationToken)
Attempts to play a specific item in the album collection. Restarts playback if already playing.
Declaration
public Task PlayAlbumCollectionAsync(IAlbumCollectionItem albumItem, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IAlbumCollectionItem | albumItem | An item from the collection where playback begins. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayAlbumCollectionAsync(CancellationToken)
Attempts to play the album collection, or resumes playback if already playing.
Declaration
public Task PlayAlbumCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayArtistCollectionAsync(IArtistCollectionItem, CancellationToken)
Attempts to play a specific item in the artistItem collection. Restarts playback if already playing.
Declaration
public Task PlayArtistCollectionAsync(IArtistCollectionItem artistItem, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IArtistCollectionItem | artistItem | An item from the collection where playback begins. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayArtistCollectionAsync(CancellationToken)
Attempts to play the Artist collection, or resumes playback if already playing.
Declaration
public Task PlayArtistCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayPlayableCollectionGroupAsync(IPlayableCollectionGroup, CancellationToken)
Attempts to play a specific item in the playable collection group. Restarts playback if already playing.
Declaration
public Task PlayPlayableCollectionGroupAsync(IPlayableCollectionGroup collectionGroup, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPlayableCollectionGroup | collectionGroup | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayPlayableCollectionGroupAsync(CancellationToken)
Attempts to play the playable collection. Resumes if paused.
Declaration
public Task PlayPlayableCollectionGroupAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayPlaylistCollectionAsync(IPlaylistCollectionItem, CancellationToken)
Attempts to play a specific item in the playlistItem collection. Restarts playback if already playing.
Declaration
public Task PlayPlaylistCollectionAsync(IPlaylistCollectionItem playlistItem, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPlaylistCollectionItem | playlistItem | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayPlaylistCollectionAsync(CancellationToken)
Attempts to play the Playlist collection, or resumes playback if already playing.
Declaration
public Task PlayPlaylistCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayTrackCollectionAsync(ITrack, CancellationToken)
Attempts to play a specific item in the track collection. Restarts playback if already playing.
Declaration
public Task PlayTrackCollectionAsync(ITrack track, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ITrack | track | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
PlayTrackCollectionAsync(CancellationToken)
Attempts to play the Track collection, or resumes playback if already playing.
Declaration
public Task PlayTrackCollectionAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveAlbumItemAsync(int, CancellationToken)
Removes the album from the collection on the backend.
Declaration
public Task RemoveAlbumItemAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the album to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveArtistItemAsync(int, CancellationToken)
Removes the artist from the collection on the backend.
Declaration
public Task RemoveArtistItemAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the artist to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveChildAsync(int, CancellationToken)
Removes the child from the collection on the backend.
Declaration
public Task RemoveChildAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the child to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveImageAsync(int, CancellationToken)
Removes the image from the collection on the backend.
Declaration
public Task RemoveImageAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the image to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemovePlaylistItemAsync(int, CancellationToken)
Removes the playlist from the collection on the backend.
Declaration
public Task RemovePlaylistItemAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the playlist to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveTrackAsync(int, CancellationToken)
Removes the track from the collection on the backend.
Declaration
public Task RemoveTrackAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the track to remove. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
RemoveUrlAsync(int, CancellationToken)
Removes a url from the collection.
Declaration
public Task RemoveUrlAsync(int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | index | the position remove the url from. |
CancellationToken | cancellationToken | A cancellation token that may be used to cancel the ongoing task. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
StartDownloadOperationAsync(DownloadOperation, CancellationToken)
Begins a download operation for this playable item.
Declaration
public Task StartDownloadOperationAsync(DownloadOperation operation, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DownloadOperation | operation | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |
Events
| Improve this Doc View SourceAlbumItemsChanged
Fires when the items in the backend are changed by something external.
Declaration
public event CollectionChangedEventHandler<IAlbumCollectionItem>? AlbumItemsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IAlbumCollectionItem> |
AlbumItemsCountChanged
Fires when the merged TotalAlbumItemsCount changes.
Declaration
public event EventHandler<int>? AlbumItemsCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
ArtistItemsChanged
Fires when the items in the backend are changed by something external.
Declaration
public event CollectionChangedEventHandler<IArtistCollectionItem>? ArtistItemsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IArtistCollectionItem> |
ArtistItemsCountChanged
Fires when the merged TotalArtistItemsCount changes.
Declaration
public event EventHandler<int>? ArtistItemsCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
ChildItemsChanged
Fires when the items in the backend are changed by something external.
Declaration
public event CollectionChangedEventHandler<IPlayableCollectionGroup>? ChildItemsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IPlayableCollectionGroup> |
ChildrenCountChanged
Fires when the merged TotalChildrenCount changes.
Declaration
public event EventHandler<int>? ChildrenCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
DescriptionChanged
Raised when Description changes.
Declaration
public event EventHandler<string?>? DescriptionChanged
Event Type
Type | Description |
---|---|
EventHandler<string> |
DownloadInfoChanged
Raised when DownloadInfo is updated.
Declaration
public event EventHandler<DownloadInfo>? DownloadInfoChanged
Event Type
Type | Description |
---|---|
EventHandler<DownloadInfo> |
DurationChanged
Raised when Duration changes;
Declaration
public event EventHandler<TimeSpan>? DurationChanged
Event Type
Type | Description |
---|---|
EventHandler<TimeSpan> |
ImagesChanged
Fires when the items are changed.
Declaration
public event CollectionChangedEventHandler<IImage>? ImagesChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IImage> |
ImagesCountChanged
Fires when the merged number of images in the collection changes.
Declaration
public event EventHandler<int>? ImagesCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
IsChangeDescriptionAsyncAvailableChanged
Raised when IsChangeDescriptionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsChangeDescriptionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsChangeDurationAsyncAvailableChanged
Raised when IsChangeDurationAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsChangeDurationAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsChangeNameAsyncAvailableChanged
Raised when IsChangeNameAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsChangeNameAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPauseAlbumCollectionAsyncAvailableChanged
Raised when IsPauseAlbumCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPauseAlbumCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPauseArtistCollectionAsyncAvailableChanged
Raised when IsPauseArtistCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPauseArtistCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPausePlaylistCollectionAsyncAvailableChanged
Raised when IsPausePlaylistCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPausePlaylistCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPauseTrackCollectionAsyncAvailableChanged
Raised when IsPauseTrackCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPauseTrackCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPlayAlbumCollectionAsyncAvailableChanged
Raised when IsPlayAlbumCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPlayAlbumCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPlayArtistCollectionAsyncAvailableChanged
Raised when IsPlayArtistCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPlayArtistCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPlayPlaylistCollectionAsyncAvailableChanged
Raised when IsPlayPlaylistCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPlayPlaylistCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
IsPlayTrackCollectionAsyncAvailableChanged
Raised when IsPlayTrackCollectionAsyncAvailable changes.
Declaration
public event EventHandler<bool>? IsPlayTrackCollectionAsyncAvailableChanged
Event Type
Type | Description |
---|---|
EventHandler<bool> |
LastPlayedChanged
Raised when LastPlayed changes.
Declaration
public event EventHandler<DateTime?>? LastPlayedChanged
Event Type
Type | Description |
---|---|
EventHandler<DateTime?> |
NameChanged
Raised when Name changes.
Declaration
public event EventHandler<string>? NameChanged
Event Type
Type | Description |
---|---|
EventHandler<string> |
PlaybackStateChanged
Raised when PlaybackState changes.
Declaration
public event EventHandler<PlaybackState>? PlaybackStateChanged
Event Type
Type | Description |
---|---|
EventHandler<PlaybackState> |
PlaylistItemsChanged
Fires when the items in the backend are changed by something external.
Declaration
public event CollectionChangedEventHandler<IPlaylistCollectionItem>? PlaylistItemsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IPlaylistCollectionItem> |
PlaylistItemsCountChanged
Fires when the merged TotalPlaylistItemsCount changes.
Declaration
public event EventHandler<int>? PlaylistItemsCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
SourcesChanged
Raised when any of the sources have changed.
Declaration
public event EventHandler? SourcesChanged
Event Type
Type | Description |
---|---|
EventHandler |
TracksChanged
Fires when the items in the backend are changed by something external.
Declaration
public event CollectionChangedEventHandler<ITrack>? TracksChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<ITrack> |
TracksCountChanged
Fires when the merged TotalTrackCount changes.
Declaration
public event EventHandler<int>? TracksCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |
UrlsChanged
Fires when the urls are changed.
Declaration
public event CollectionChangedEventHandler<IUrl>? UrlsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<IUrl> |
UrlsCountChanged
Fires when the merged number of urls in the collection changes.
Declaration
public event EventHandler<int>? UrlsCountChanged
Event Type
Type | Description |
---|---|
EventHandler<int> |