Package globus.glsearch
Class GLSearchCategories
java.lang.Object
globus.glmap.GLNativeObject
globus.glsearch.GLSearchCategories
public class GLSearchCategories
extends globus.glmap.GLNativeObject
GLSearchCategories class holds a set of `GLSearchCategory` that will be used to sort
search results by priority.-
Method Summary
Modifier and TypeMethodDescriptionfindByIconName(String iconName) findByName(String name) static GLSearchCategoriesShared categories.getStartedWith(String[] words, globus.glmap.GLMapLocaleSettings localeSettings) Returns categories that starts with given wordsgetTop()Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
getTop
- Returns:
- Returns top categories
-
getStartedWith
@Nullable public GLSearchCategory[] getStartedWith(@NonNull String[] words, @NonNull globus.glmap.GLMapLocaleSettings localeSettings) Returns categories that starts with given words- Parameters:
words- Words arraylocaleSettings- Language priority settings- Returns:
- Matched array of categories
-
findByName
- Parameters:
name- name of category- Returns:
- Returns category with given name.
-
findByIconName
- Parameters:
iconName- Icon name- Returns:
- Returns category with given name.