GLSearchCategories


@interface GLSearchCategories : NSObject

GLSearchCategories class holds a set of GLSearchCategory that will be used to sort search results by priority.

  • Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • Singleton manager object

    Declaration

    Objective-C

    @property (readonly, nonatomic, class)
        GLSearchCategories *_Nonnull sharedCategories;
  • Declaration

    Objective-C

    - (NSArray<GLSearchCategory *> *_Nonnull)topCategories;

    Return Value

    Returns top categories

  • Returns categories that starts with given words

    Declaration

    Objective-C

    - (NSArray<GLSearchCategory *> *_Nonnull)
    categoriesStartedWith:(NSArray<NSString *> *_Nonnull)words
           localeSettings:(GLMapLocaleSettings *_Nonnull)localeSettings;

    Parameters

    words

    Words array

    localeSettings

    Language priority settings

    Return Value

    Matched array of categories

  • Declaration

    Objective-C

    - (GLSearchCategory *_Nullable)findByName:(NSString *_Nonnull)name;

    Return Value

    Returns category with given name.

  • Declaration

    Objective-C

    - (GLSearchCategory *_Nullable)findByIconName:(NSString *_Nonnull)iconName;

    Return Value

    Returns category with given iconName.