getLocalContentList static method
- ContentType type
Return the list of content items downloaded on the device for the specified type.
Parameters
type: The ContentType to query (for example ContentType.roadMap).
Returns
- A list of ContentStoreItem objects representing local (completed or downloading) content for the given type.
See also:
- asyncGetStoreContentList - Request the online content list for a specific type.
Implementation
static List<ContentStoreItem> getLocalContentList(final ContentType type) {
final OperationResult resultString = staticMethod(
'ContentStore',
'getLocalContentList',
args: type.id,
);
return ContentStoreItemList.init(resultString['result']).toList();
}