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) init

Instances of this class should not be initialized

-(nonnull) 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) 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) init

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

-(nonnull) 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) new

Instances of this class should not be initialized directly

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.