Interface IAssetItemDataProvider
Interface for providing assets data.
[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.")]
public interface IAssetItemDataProvider
- Extension Methods
Methods
Get(int, string, int, int, string, CancellationToken?)
Gets a batch of asset items defined by the page index and size for given library identifier and folder path.
Task<AssetItemData> Get(int libraryIdentifier, string folderPath, int pageIndex, int pageSize, string allowedExtensions, CancellationToken? cancellationToken = null)
Parameters
libraryIdentifierintAssets library identifier.
folderPathstringPath to the folder to load the assets from.
pageIndexintIndex of page to get.
pageSizeintSize of the page to get.
allowedExtensionsstringAllowed file extensions to be loaded.
cancellationTokenCancellationToken?The cancellation instruction.
Returns
- Task<AssetItemData>
Remarks
When pageSize is 0 paging is not applied and all assets are returned.