MMKMapKit(Factory)

@interface MMKMapKit (Factory)

Summary

Class methods

+ (nonnull instancetype)mapKit;
Gets the MapKit instance

+ (nonnull instancetype)sharedInstance;

+ (void)setApiKey:(nonnull NSString *)apiKey;
Sets the API key for MapKit SDK

+ (void)setUserId:(nonnull NSString *)id;
Sets the user id for MapKit SDK

+ (void)setLocale:(nullable NSString *)locale;
Sets locale for MapKit SDK

Instance methods

- (void)setCompletionHandler:(nonnull void (^)(void))completionHandler
     forBackgroundURLSession:(nonnull NSString *)identifier;

Sets completion handler for background URL session

Class methods

mapKit

+ (nonnull instancetype)mapKit;

Gets the MapKit instance.


sharedInstance

+ (nonnull instancetype)sharedInstance;


setApiKey:

+ (void)setApiKey:(nonnull NSString *)apiKey;

Sets the API key for MapKit SDK. Call this before [MMKMapKit mapKit] and [MMKMapKit sharedInstance]


setUserId:

+ (void)setUserId:(nonnull NSString *)id;

Sets the user id for MapKit SDK. Call this before [MMKMapKit mapKit] and [MMKMapKit sharedInstance]


setLocale:

+ (void)setLocale:(nullable NSString *)locale;

Sets locale for MapKit SDK. Call this before [MMKMapKit mapKit] and [MMKMapKit sharedInstance]


Instance methods

setCompletionHandler:forBackgroundURLSession:

- (void)setCompletionHandler:(nonnull void (^)(void))completionHandler
     forBackgroundURLSession:(nonnull NSString *)identifier;

Sets completion handler for background URL session.