getBrowseFacets
fun getBrowseFacets( page: Int? = null, perPage: Int? = null, offset: Int? = null, showHiddenFacets: Boolean? = null): Observable<ConstructorData<BrowseFacetsResponse>>
Content copied to clipboard
Returns a list of browse facet results.
Example:
ConstructorIo.getBrowseFacets(1, 20)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it.response?.let {
view.renderData(it)
}
}
}
Content copied to clipboard
Parameters
page
the page number of the results (Can't be used with offset)
perPage
the number of results per page to return
offset
the number of results to skip from the start (Can't be used with page)
showHiddenFacets
show fields that are hidden by default
fun getBrowseFacets(request: BrowseFacetsRequest): Observable<ConstructorData<BrowseFacetsResponse>>
Content copied to clipboard
Returns a list of browse facet results utilizing a request object.
Example:
val request = BrowseFacetsRequest.Builder()
.setPage(2)
.setNumResultsPerPage(40)
.build()
ConstructorIo.getBrowseFacets(request)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it?.let {
view.renderData(it)
}
}
}
Content copied to clipboard
Parameters
request
the search request object