getTemplateCategoryByName

open fun getTemplateCategoryByName(@NonNull context: Context, @NonNull categoryName: String): TemplateCategoryItem

Gets a template category having the given categoryName. This method return null if the given categoryName is empty or the corresponding category is not found.

Return

TemplateCategoryItem: the category having the given categoryName, or null if it is not found.

Parameters

context

Context The application context.

categoryName

String the category name