getStoreContentList static method
- ContentType type
Gets access to the store cached content list.
Parameters
- IN type Content list type (see ContentType)
Returns
- Record of
(Content list, locally cached flag)
. If the list is not cached locally (locally cached flag is false) a call to asyncGetStoreContentList must be performed in order to request it from store.
Implementation
static (List<ContentStoreItem>, bool) getStoreContentList(
final ContentType type,
) {
final OperationResult contentStoreListString = staticMethod(
'ContentStore',
'getStoreContentList',
args: type.id,
);
final int listId = contentStoreListString['result']['contentStoreListId'];
final bool isCached = contentStoreListString['result']['isCached'];
return (
ContentStoreItemList.init(listId).toList(),
isCached,
);
}