getTemplateByName

open fun getTemplateByName(@NonNull context: Context, @NonNull templateName: String): TemplateItem

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

Return

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

Parameters

context

Context The application context.

templateName

String the template name