customer-android-kotlin

//core/com.kustomer.core.providers/KusKbProvider/fetchCategoryById

fetchCategoryById

[androidJvm]
abstract suspend fun fetchCategoryById(categoryId: String, locale: Locale): KusResult<KusKbCategory>

Fetch a category with its immediate child subcategories and articles by Id Default knowledgebase id is used if no value is overridden in the Core SDK KustomerCoreOptions.knowledgeBaseId

Note: This is a suspend function and should be called from Kotlin Coroutines

Return

KusResult of type KusKbCategory

Parameters

androidJvm

   
categoryId Id of the category
locale Language of the categories and articles to be fetched in