getAllTemplatesAsLiveData

fun getAllTemplatesAsLiveData(    context: Context,     categoryUUID: String? = null,     searchKeyword: String? = null): LiveData<List<STWTemplate>?>

Gets the full list of templates that matching the keyword.

Empty categoryUUID will return the full list of templates present in all categories.

Empty keyWord will return the full list of templates.

Return

The LiveData for List of STWTemplate found.

Parameters

context
    **Context** The application context.
categoryUUID
    **String** the category uuid
searchKeyword
    **String : ** to get only templates with name
    containing this keyword, put empty string to get all templates