HERE iOS SDK Developer's Guide

NMACustomizableColor

Class Summary

class NMACustomizableColor

Derived from: NMACustomizableVariable

Represents a map customization color property with red, green, blue components ranging from 0 to 255.

Include: NMAKit.framework/headers/NMACustomizableColor.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMACustomizableColor

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, assign] NSInteger  alpha

[readable, writable, assign] NSInteger  blue

[readable, writable, assign] NSInteger  green

[readable, writable, assign] NSInteger  red

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull UIColor *) color

Utility method to configure the color from an UIColor object

-(nonnull instancetype) init

Instances of this class should not be initialized

-(nonnull instancetype) initWithColorProperty:( NMASchemeColorProperty ) property andZoomLevel:(float) zoomLevel andZoomRange:(nullable NMAZoomRange *) zoomRange

Initializes a NMACustomizableColor defining its property, zoomLevel and zoomRange

-(void) setColor:(nonnull UIColor *) color

Utility method to configure the color from an UIColor object

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) new

Class Details

Represents a map customization color property with red, green, blue components ranging from 0 to 255.

Public Property Details

[readable, writable, assign] NSInteger alpha

[readable, writable, assign] NSInteger blue

[readable, writable, assign] NSInteger green

[readable, writable, assign] NSInteger red

Instance Method Details

-(nonnull UIColor *) color

Utility method to configure the color from an UIColor object.

Note:

This property is only relevant when READING a custom property The alpha component of the returned UIColor is always 1.

-(nonnull instancetype) init

Instances of this class should not be initialized. Call class methods only.

-(nonnull instancetype) initWithColorProperty:( NMASchemeColorProperty ) property andZoomLevel:(float) zoomLevel andZoomRange:(nullable NMAZoomRange *) zoomRange

Initializes a NMACustomizableColor defining its property, zoomLevel and zoomRange.

Parameters:

  • property

    The NMASchemeColorProperty representing the property type of customizable variable

  • zoomLevel

    The float representing the current zoom level

  • zoomRange

    The float representing the zoom range

Returns:

The NMACustomizableColor

-(void) setColor:(nonnull UIColor *) color

Utility method to configure the color from an UIColor object.

Note:

This property is only relevant when SETTING a custom property The alpha component of UIColor is not considered

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly