getBrowseFacetOptions

fun getBrowseFacetOptions(facetName: String, showHiddenFacets: Boolean? = null): Observable<ConstructorData<BrowseFacetOptionsResponse>>

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)
}
}
}

Parameters

facetName

name of the facet whose options to return

showHiddenFacets

show fields that are hidden by default


fun getBrowseFacetOptions(request: BrowseFacetOptionsRequest): Observable<ConstructorData<BrowseFacetOptionsResponse>>

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)
}
}
}

Parameters

request

the browse facet options request object