Interface ICorePlayableCollectionGroupChildren
A collection of ICorePlayableCollectionGroups and the properties and methods for using and manipulating them.
Inherited Members
Namespace: StrixMusic.Sdk.CoreModels
Assembly: StrixMusic.Sdk.dll
Syntax
public interface ICorePlayableCollectionGroupChildren : IPlayableCollectionGroupChildrenBase, IPlayableCollectionBase, IPlayableCollectionItem, IPlayableBase, IImageCollectionBase, IUrlCollectionBase, ICollectionBase, ICollectionItemBase, ICoreModel
Remarks
This interface should be implemented by a core.
Methods
| Improve this Doc View SourceAddChildAsync(ICorePlayableCollectionGroup, int, CancellationToken)
Adds a new child to the collection on the backend.
Declaration
Task AddChildAsync(ICorePlayableCollectionGroup child, int index, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ICorePlayableCollectionGroup | 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. |
GetChildrenAsync(int, int, CancellationToken)
Gets a requested number of ICorePlayableCollectionGroups starting at the given offset in the backend.
Declaration
IAsyncEnumerable<ICorePlayableCollectionGroup> 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<ICorePlayableCollectionGroup> | IAsyncEnumerable<T> that returns the items as they're retrieved. |
PlayPlayableCollectionGroupAsync(ICorePlayableCollectionGroup, CancellationToken)
Attempts to play a specific item in the playable collection group. Restarts playback if already playing.
Declaration
Task PlayPlayableCollectionGroupAsync(ICorePlayableCollectionGroup collectionGroup, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ICorePlayableCollectionGroup | collectionGroup | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
Events
| Improve this Doc View SourceChildItemsChanged
Fires when the items in the backend are changed by something external.
Declaration
event CollectionChangedEventHandler<ICorePlayableCollectionGroup>? ChildItemsChanged
Event Type
Type | Description |
---|---|
CollectionChangedEventHandler<ICorePlayableCollectionGroup> |