GLSearchCategory
Objective-C
@interface GLSearchCategory : NSObject
Swift
class GLSearchCategory : NSObject
GLSearchCategory
class holds information about category that can be displayed to user.
-
Unavailable
Please use
GLSearchCategories
to work withGLSearchCategory
objects.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
- (GLMapValue *_Nullable)localizedName:(GLMapLocaleSettings *_Nonnull)settings;
Swift
func localizedName(_ settings: GLMapLocaleSettings) -> GLMapValue?
Parameters
settings
Language order settings
Return Value
Localized name of the category.
-
Icon name of the category.
Declaration
Objective-C
@property (readonly) NSString *_Nullable iconName;
Swift
var iconName: String? { get }
-
Child categories of the category.
Declaration
Objective-C
@property (readonly) NSArray<GLSearchCategory *> *_Nonnull childs;
Swift
var childs: [GLSearchCategory] { get }
-
Parent category
Declaration
Objective-C
@property (readonly) GLSearchCategory *_Nullable parent;
Swift
var parent: GLSearchCategory? { get }
-
Reference object that matches to this category
Declaration
Objective-C
@property (readonly) GLMapVectorObject *_Nonnull refObject;
Swift
var refObject: GLMapVectorObject { get }
-
Fills category information for vector object using it’s tags
Declaration
Objective-C
- (void)fillObjectCategory:(GLMapVectorObject *_Nonnull)object;
Swift
func fillObjectCategory(_ object: GLMapVectorObject)
Parameters
object
Vector object to fill category