LandmarkCategoryObject

Objective-C


@interface LandmarkCategoryObject : NSObject

Swift

class LandmarkCategoryObject : NSObject

This class encapsulates landmark category information.

  • Initializes and returns a newly allocated object using category name.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name;

    Swift

    init(name: String)
  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Returns the category identifier.

    Declaration

    Objective-C

    - (int)getIdentifier;

    Swift

    func getIdentifier() -> Int32
  • Returns the category name.

    Declaration

    Objective-C

    - (nonnull NSString *)getName;

    Swift

    func getName() -> String
  • Set the category name.

    Declaration

    Objective-C

    - (void)setName:(nonnull NSString *)name;

    Swift

    func setName(_ name: String)
  • Returns the category image.

    Declaration

    Objective-C

    - (nullable UIImage *)getImage:(CGSize)size;

    Swift

    func getImage(_ size: CGSize) -> UIImage?

    Parameters

    size

    The image size in pixels

  • Returns the category image.

    Declaration

    Objective-C

    - (nullable UIImage *)getImage:(CGSize)size
                             scale:(CGFloat)scale
                               ppi:(NSInteger)ppi;

    Swift

    func getImage(_ size: CGSize, scale: CGFloat, ppi: Int) -> UIImage?

    Parameters

    size

    The size in pixels.

    scale

    The screen scale factor.

    ppi

    The screen pixel per inch.

  • Set the category image.

    Declaration

    Objective-C

    - (void)setImage:(nonnull UIImage *)image;

    Swift

    func setImage(_ image: UIImage)
  • Returns the landmark store identifier. If the category doesn’t belong to a landmark store the function will return 0.

    Declaration

    Objective-C

    - (int)getLandmarkStoreIdentifier;

    Swift

    func getLandmarkStoreIdentifier() -> Int32