setApiKey static method

void setApiKey(
  1. NSString? value
)

The API Key used by all instances of MLNMapView in the current application. Setting this property to a value of nil has no effect.

Note: You must set the API key before attempting to load any style which requires the token. Therefore, you should generally set it before creating an instance of MLNMapView. The recommended way to set an api key is to add an entry to your application’s Info.plist file with the key MLNApiKey`` and the type String. Alternatively, you may call this method from your application delegate’s -applicationDidFinishLaunching:` method.

Implementation

static void setApiKey(objc.NSString? value) {
_objc_msgSend_xtuoz7(_class_MLNSettings, _sel_setApiKey_, value?.ref.pointer ?? ffi.nullptr);

}