get Browse Facet Options
fun getBrowseFacetOptions(facetName: String, showHiddenFacets: Boolean? = null): Observable<ConstructorData<BrowseFacetOptionsResponse>>
Content copied to clipboard
Returns a list of browse facet options results.
Example:
ConstructorIo.getBrowseFacetOptions("Brand", false)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it.response?.let {
view.renderData(it)
}
}
}
Content copied to clipboard
Parameters
facet Name
name of the facet whose options to return
show Hidden Facets
show fields that are hidden by default
fun getBrowseFacetOptions(request: BrowseFacetOptionsRequest): Observable<ConstructorData<BrowseFacetOptionsResponse>>
Content copied to clipboard
Returns a list of browse facet options utilizing a request object.
Example:
val request = BrowseFacetOptionsRequest.Builder("Brand")
.setShowHiddenFacets(true)
.build()
ConstructorIo.getBrowseFacetOptions(request)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
it.onValue {
it?.let {
view.renderData(it)
}
}
}
Content copied to clipboard
Parameters
request
the browse facet options request object