• Options to configure access to a resource

    See more

    Declaration

    Swift

  • Convenience class that manages a global ResourceOptions

    It’s possible to create ResourceOptionsManager instances as you need them, however it’s convenient to use the default object (default).

    For example, we recommend that the Mapbox access token be set in application(_:didFinishLaunchingWithOptions:) rather than relying on the value in your application’s Info.plist:

    ```
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        ResourceOptionsManager.default.resourceOptions.accessToken = "overridden-access-token"
        return true
    }
    ```
    
    See more
  • A protocol to open attribution URLs.

    Use this protocol when the map view is used in non-application target(e.g. application extension target).

    See more