GLSearchCategory


@interface GLSearchCategory : NSObject

GLSearchCategory class holds information about category that can be displayed to user.

  • Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • Returns name of the category according language priority settings. It checks for translated name from first language in priority list to the last one until first translated name is found.

    Declaration

    Objective-C

    - (NSString *_Nullable)localizedName:(GLMapLocaleSettings *_Nonnull)settings;

    Parameters

    settings

    language order settings

    Return Value

    localised name of the category.

  • Returns name of the category according language priority settings. It checks for aviability of translated name from first language in priority list to the last one until first translated name is found. If category was found by search request matched part of text will be highlighted by given color.

    Declaration

    Objective-C

    - (NSAttributedString *_Nullable)
    attributedName:(NSDictionary *_Nonnull)normal
         highlight:(NSDictionary *_Nonnull)highlight
    localeSettings:(GLMapLocaleSettings *_Nonnull)localeSettings;

    Parameters

    normal

    Normal attributes

    highlight

    Highlight attributes

    localeSettings

    language order settings

    Return Value

    localised name of the category.

  • Icon name of the category.

    Declaration

    Objective-C

    @property (readonly, atomic) NSString *_Nonnull iconName;
  • Child categories of the category.

    Declaration

    Objective-C

    @property (readonly, atomic) NSArray<GLSearchCategory *> *_Nonnull childs;