get Collection Suspend
suspend fun getCollectionSuspend( collectionAlias: String, shouldIgnoreCache: Boolean = false, from: Int = 0, size: Int = DEFAULT_PAGINATION_SIZE, preLoading: Boolean? = null): Either<ArcXPException, Map<Int, ArcXPContentElement>>
Content copied to clipboard
getCollectionSuspend this suspend function requests a collection result by content alias
Return
Either returns either Success<Int, ArcXPContentElement> with collections in their desired order from server or Failure
Parameters
collection Alias
Content Alias
should Ignore Cache
if true, we ignore caching for this call only
from
Int index in which to start (ie for pagination, you may want to start at index for next page)
size
Int number of entries to request: (valid range VALID_COLLECTION_SIZE_RANGE, will coerce parameter into this range if it is outside)
pre Loading
: Boolean should we call collection full? if nothing is entered, will default to ArcXPContentConfig.preLoading value