com.oscleton.sdk.browser / Browser / getBrowserItems
getBrowserItems
fun getBrowserItems(uri:
String
, afterUri:
String
, pageSize:
Int
= 20):
List
<
BrowserItem
>
Return a chunk list of children BrowserItem elements for a specific BrowserItem. The afterUri parameter is used to load the next chunk of BrowserItem elements. For an initial loading, pass an empty String to afterUri. The pageSize parameter lets you control how many BrowserItem elements you want to return on a single call.
NB: This method is blocking and is especially designed to work with the Paging library, as it requires synchronous calls in its loadInitial() and loadAfter() methods.
Parameters
uri
- the BrowserItem uri
afterUri
- the last BrowserItem uri in the current loaded list
pageSize
- the number of BrowserItem chunk list to load
Return a chunk list of BrowserItem elements
Since 1.0