Loading...
Searching...
No Matches

class is used for storing venue categories. More...

#include <com/navigine/idl/objc/NCCategory.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithId:name:imageUrl:
 Default constructor for class NCCategory.
 

Class Methods

(nonnull instancetype) + categoryWithId:name:imageUrl:
 Factory method for class NCCategory.
 

Properties

int32_t id
 category identifier.
 
NSString * name
 category name.
 
NSString * imageUrl
 image source. If presented.
 

Detailed Description

class is used for storing venue categories.

Referenced from Location Venue.

Definition at line 16 of file NCCategory.h.

Method Documentation

◆ categoryWithId:name:imageUrl:

+ (nonnull instancetype) categoryWithId: (int32_t) id
name: (nonnull NSString *) name
imageUrl: (nullable NSString *) imageUrl 

Factory method for class NCCategory.

◆ initWithId:name:imageUrl:

- (nonnull instancetype) initWithId: (int32_t) id
name: (nonnull NSString *) name
imageUrl: (nullable NSString *) imageUrl 

Default constructor for class NCCategory.

Property Documentation

◆ id

- (int32_t) id
readnonatomicassign

category identifier.

Swift code snippet:

// Get category ID
let categoryId = category.getId()
print("Category ID: \‍(categoryId)")

Objective C code snippet:

// Get category ID
int32_t categoryId = [category getId];
NSLog(@"Category ID: %d", categoryId);

Definition at line 44 of file NCCategory.h.

◆ imageUrl

- (NSString*) imageUrl
readnonatomicassign

image source. If presented.

Swift code snippet:

// Get category image URL
if let imageUrl = category.getImageUrl() {
print("Category image URL: \‍(imageUrl)")
}

Objective C code snippet:

// Get category image URL
NSString *imageUrl = [category getImageUrl];
if (imageUrl != nil) {
NSLog(@"Category image URL: %@", imageUrl);
}

Definition at line 72 of file NCCategory.h.

◆ name

- (NSString*) name
readnonatomicassign

category name.

Swift code snippet:

// Get category name
let categoryName = category.getName()
print("Category name: \‍(categoryName ?? "nil")")

Objective C code snippet:

// Get category name
NSString *categoryName = [category getName];
NSLog(@"Category name: %@", categoryName);

Definition at line 58 of file NCCategory.h.


The documentation for this class was generated from the following file: