GLSearchCategory
Objective-C
@interface GLSearchCategory : NSObject
Swift
class GLSearchCategory : NSObject
GLSearchCategory
class represents a category of objects used for search purposes.
-
Unavailable
Please use
GLSearchCategories
to work withGLSearchCategory
objects.Default -init is disabled.
Declaration
Objective-C
- (instancetype _Nonnull)init;
-
Returns the name of the category according to the language priority settings. It checks for a translated name from the first language in the priority list to the last one until the 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 this category.
Declaration
Objective-C
@property (readonly) GLMapVectorObject *_Nonnull refObject;
Swift
var refObject: GLMapVectorObject { get }
-
Fills category information for the vector object using its tags.
Declaration
Objective-C
- (void)fillObjectCategory:(GLMapVectorObject *_Nonnull)object;
Swift
func fillObjectCategory(_ object: GLMapVectorObject)
Parameters
object
Vector object to fill category.