getLocalContentList static method

List<ContentStoreItem> getLocalContentList(
  1. ContentType type
)

Return the list of content items downloaded on the device for the specified type.

Parameters

Returns

  • A list of ContentStoreItem objects representing local (completed or downloading) content for the given type.

See also:

Implementation

static List<ContentStoreItem> getLocalContentList(final ContentType type) {
  final OperationResult resultString = staticMethod(
    'ContentStore',
    'getLocalContentList',
    args: type.id,
  );

  return ContentStoreItemList.init(resultString['result']).toList();
}