Package globus.glsearch
Class GLSearchCategories
java.lang.Object
globus.glmap.GLNativeObject
globus.glsearch.GLSearchCategories
GLSearchCategories class holds a set of `GLSearchCategory` that will be used to sort
search results by priority.-
Method Summary
Modifier and TypeMethodDescriptionfindByIconName(String iconName) Finds a category by its icon name.findByName(String name) Finds a category by its name.static GLSearchCategoriesShared categories.getStartedWith(String[] words, GLMapLocaleSettings localeSettings) Finds categories that start with the given words.getTop()Retrieves the top-level categories.Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
getTop
Retrieves the top-level categories.- Returns:
- An array of
GLSearchCategoryobjects representing the top categories.
-
getStartedWith
@Nullable public GLSearchCategory[] getStartedWith(@NonNull String[] words, @NonNull GLMapLocaleSettings localeSettings) Finds categories that start with the given words.- Parameters:
words- An array of words to match the beginning of category names.localeSettings- The language priority settings for the search.- Returns:
- An array of matched
GLSearchCategoryobjects, ornullif no matches are found.
-
findByName
Finds a category by its name.- Parameters:
name- The name of the category to search for.- Returns:
- The
GLSearchCategorywith the given name, ornullif no such category exists.
-
findByIconName
Finds a category by its icon name.- Parameters:
iconName- The icon name associated with the category to search for.- Returns:
- The
GLSearchCategorywith the given icon name, ornullif no such category exists.