Inherits from NSObject
Declared in RMConfiguration.h

Overview

The RMConfiguration object is a shared instance of the configuration for the library.

Tasks

Accessing the Configuration

Authorizing Access

Cache Configuration

Using a Custom User Agent

Properties

accessToken

A Mapbox API access token. Obtain an access token on your Mapbox account page.

@property (nonatomic, retain) NSString *accessToken

Discussion

A Mapbox API access token. Obtain an access token on your Mapbox account page.

Declared In

RMConfiguration.h

userAgent

Access and change the global user agent for HTTP requests using the library.

@property (nonatomic, retain) NSString *userAgent

Discussion

Access and change the global user agent for HTTP requests using the library.

If unset, defaults to Mapbox iOS SDK followed by generic hardware model and software version information.

Example: MyMapApp/1.2

Declared In

RMConfiguration.h

Class Methods

configuration

Access the shared instance of the configuration.

+ (instancetype)configuration

Return Value

The shared configuration instance.

Discussion

Access the shared instance of the configuration.

Declared In

RMConfiguration.h

sharedInstance

Access the shared instance of the configuration.

+ (instancetype)sharedInstance

Return Value

The shared configuration instance.

Discussion

Access the shared instance of the configuration.

Declared In

RMConfiguration.h

Instance Methods

cacheConfiguration

Access the disk- and memory-based cache configuration.

- (NSDictionary *)cacheConfiguration

Return Value

A dictionary containing the cache configuration.

Discussion

Access the disk- and memory-based cache configuration.

Declared In

RMConfiguration.h