• Options to configure access to a resource

    See more

    Declaration

    Swift

    public struct ResourceOptions
    extension ResourceOptions: Hashable
    extension ResourceOptions: CustomStringConvertible, CustomDebugStringConvertible
  • 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

    Declaration

    Swift

    public class ResourceOptionsManager
  • Declaration

    Swift

    extension MapOptions
  • Declaration

    Swift

    extension GlyphsRasterizationOptions
  • A protocol that supplies current interface orientation for the specified view.

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

    See more

    Declaration

    Swift

    @available(iOS, deprecated: 13)
    public protocol InterfaceOrientationProvider
  • 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

    Declaration

    Swift

    public protocol AttributionURLOpener