Protocols
The following protocols are available globally.
-
Observer of Application UI Instance state UI Instance is represented by
UIScene
(there could be multipleUIScene
instances per iOS application) orUIApplication
(there is a single instance ofUIApplication
class per iOS application).Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol AppUIInstanceStateObservable : Observer
-
Monitors the iOS application lifecycle and notifies observers on state changes.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol ApplicationLifecycleMonitoring
-
A protocol that defines camera actions.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol CameraActions : AnyObject
-
CopyrightsServiceProtocol defines a method used to obtain the copyright informations.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol CopyrightsService
-
Type to control location features.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol LocationActions : AnyObject
-
MapActions
defines a set of methods closely connected to the map.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol MapActions : AnyObject
-
The
Layer
protocol that represents map layer.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Layer : AnyObject
-
The
Style
protocol that represents the map style.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Style : AnyObject
-
Base protocol for
AnnotationOptions
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol AnnotationOptions
-
Base protocol for any
Annotation
: polygon, line, circle, marker etc.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Annotation : AnyObject
-
Protocol that represents the requirements of a circle
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Circle : Annotation
-
The Line.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Line : Annotation
-
A polygon overlay can be built by setting the outer area color and adding inner polygons. Only one inner polygon is supported, but the inner polygons can be nested. Example:
let innerOptions = InnerPolygonOptions(fillColor: .red coordinates: coordinates) innerOptions.nestedPolygonOptions = InnerPolygonOptions( fillColor: UIColor.blue, coordinates: coordinates ) let polygonOptions = PolygonOverlayOptions(outerColor: .green, innerPolygonOptions: innerOptions) try? mapView.map.addPolygonOverlay(options: polygonOptions)
}
See moreDeclaration
Swift
public protocol PolygonOverlay : Annotation
-
Protocol that defines requirements for a marker.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Marker : Annotation
-
Protocol that represents the requirements of a polygon.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Polygon : Annotation
-
A protocol that defines map annotation actions.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol AnnotationsActions : AnyObject
-
Rendered Feature Actions protocol.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol RenderedFeatureActions
-
RouteDelegate.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol RouteDelegate : AnyObject
-
Protocol specifying the
See moreRoute
object.Declaration
Swift
public protocol Route : AnyObject
-
Protocol allowing management of the route representation on the map.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol RouteActions
-
Protocol that defines method that will be performed when user clicked on traffic incidents icon.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol OnTrafficIncidentObservable : Observer
-
MapMetalRendererFrameCaptureDelegate
exposes possibility to get currently drawn frame as a texture. Using this delegate may have impact of performance rendering.Declaration
Swift
public protocol MapRendererFrameCaptureDelegate : AnyObject
-
The MapViewDelegate informs when map is ready.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol MapViewDelegate : AnyObject
-
The methods that an object adopts to manage callout views for a MapView.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol MapDataSource : AnyObject
-
A protocol that provides actions delegate from Map allowing you to interact with the map.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol MapDelegate : AnyObject
-
Protocol that aggregates core functionalities of the map.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol Map: CameraActions, AnnotationsActions, RouteActions, LocationActions, MapActions, RenderedFeatureActions, DiagnosticActions