public class GLSearchCategories
extends java.lang.Object
GLSearchCategories class holds a set of `GLSearchCategory` that will be used to sort search results by priority.| Modifier and Type | Class and Description |
|---|---|
static interface |
com.glmapview.GLNativeObject.Type |
| Modifier and Type | Method and Description |
|---|---|
static GLSearchCategories |
CreateFromBytes(byte[] source,
byte[] icuData)
Loads categories from given source data
|
void |
dispose() |
GLSearchCategory |
findByIconName(java.lang.String iconName) |
GLSearchCategory |
findByName(java.lang.String name) |
GLSearchCategory[] |
getStartedWith(java.lang.String[] words,
GLMapLocaleSettings localeSettings)
Returns categories that starts with given words
|
GLSearchCategory[] |
getTop() |
public static GLSearchCategories CreateFromBytes(byte[] source, byte[] icuData)
source - raw data of categoriesicuData - raw icu data (need for proper work of collator)public GLSearchCategory[] getTop()
public GLSearchCategory[] getStartedWith(java.lang.String[] words, GLMapLocaleSettings localeSettings)
words - Words arraylocaleSettings - Language priority settingspublic GLSearchCategory findByName(java.lang.String name)
name - name of categorypublic GLSearchCategory findByIconName(java.lang.String iconName)
iconName - Icon namepublic void dispose()
Copyright © 2017 GetYourMap. All Rights Reserved.