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 GLSearchCategories
Shared 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
GLSearchCategory
objects 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
GLSearchCategory
objects, ornull
if no matches are found.
-
findByName
Finds a category by its name.- Parameters:
name
- The name of the category to search for.- Returns:
- The
GLSearchCategory
with the given name, ornull
if 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
GLSearchCategory
with the given icon name, ornull
if no such category exists.