Skip to main content

class

ActivityTracker​

Extends: Hashable
public static func == (lhs: ActivityTracker, rhs: ActivityTracker) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init(
platformContext: Context,
model: Model,
speedBound: Double = 4.2,
timeThreshold: TimeInterval = 20
)

Navigation extension that monitors user activity and gives a signal when the user has stopped using the navigator and it can be turned off.

Parameters

platformContext

Context.

model

Model of the navigator status of which is being tracked.

speedBound

Upper limit of speed in m/s, if exceeded in the Finished state of the navigator, it is considered that the navigator is active, i.e. the movement continues.

timeThreshold

TimeInterval

Time during which in the Finished state of the navigator the speed is tracked below the threshold for determining the inactive state of the navigator. If during this time the speed is less than the set threshold or there is no location and speed data, the navigator is considered inactive.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

Properties

var stopChannel​

StatefulChannel<Bool>

Flag the active state of which indicates that the navigator must be stopped. If in the Finished state the navigation stops, i.e. the movement stops or its speed becomes lower than the threshold value, and if this state persists for some time, the flag is set to true, otherwise it is set to false.

var stop​

Flag the active state of which indicates that the navigator must be stopped. If in the Finished state the navigation stops, i.e. the movement stops or its speed becomes lower than the threshold value, and if this state persists for some time, the flag is set to true, otherwise it is set to false.

AlternativeRouteSelector​

Alternative route selection.

Extends: Hashable
public static func == (lhs: AlternativeRouteSelector, rhs: AlternativeRouteSelector) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public nonisolated func selectAlternativeRoute(
trafficRoute: TrafficRoute
)

Alternative route selection. If a passed route does not equal any of the current alternative routes, nothing happens. Otherwise, a corresponding alternative route becomes the current active route.

Parameters

trafficRoute

Alternative route that must be selected as the current active route.

AlternativeRoutesProviderSettings​

Settings of searching for alternative routes and a better route.

Extends: Hashable
public static func == (lhs: AlternativeRoutesProviderSettings, rhs: AlternativeRoutesProviderSettings) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

Properties

var alternativeRoutesEnabled​

Flag to enable/disable the suggestion of alternative routes. By default, suggestion of alternative routes is enabled.

var betterRouteEnabled​

Flag to enable/disable the suggestion of a better route. By default, the better route suggestion is enabled.

var routeSearchDelay​

Delay before searching for alternative routes when starting a trip on a route or after switching to another route. Must be at least 5 seconds. The default is 20 seconds.

var onAlternativeRoutesSuggestedRouteSearchDelay​

Delay before the next route search right after alternative routes are suggested to the user. The delay resets if, after the alternative routes are suggested, the user switches to any route other than one of the suggested alternatives.

var betterRouteTimeCostThreshold​

Minimum difference in travel time between the original route and the alternate route at which the alternate route is considered a better route.

var betterRouteLengthThreshold​

Minimum cumulative length of route edges that differ between the original route and the alternate route, at which the alternate route is considered the better route.

var routerType​

Type of a search engine for finding alternative routes.

AnimationSettings​

Settings of map object animations. Applied to style layers with a model source specified. For example, layers of the "3D model" and "Directional model" type.

Extends: Hashable
public static func == (lhs: AnimationSettings, rhs: AnimationSettings) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

Properties

var animationIndex​

Int32?

Gets the index of the current model animation. If null, the value from styles is used.

var animationName​

Name of the current model animation. If null, the value from styles is used. If the value is not specified in styles, the animation is not played.

var sceneIndex​

Int32?

Gets the index of the current model scene. If null, the value from styles is used.

var sceneName​

Gets the title of the current model scene. If null, the value from styles is used.

var animationRepeatCount​

Int32?

Gets the number of the model animation repetitions. If null, the value from styles is used.

var animationSpeed​

Float?

Gets the speed of playing the model animation. If null, the value from styles is used.

Attributes​

Interface for managing map object attributes.

Extends: Hashable
public static func == (lhs: Attributes, rhs: Attributes) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

public nonisolated func setAttributeValue(
name: String,
value: AttributeValue
)

Setting an attribute.

Parameters

name

Property name.

value

public nonisolated func setAttributeValues(
values: [String: AttributeValue],
attributesToRemove: [String] = []
)

Sets a set of attributes.

Parameters

values

String[ : ]

Set of “name”:“value” pairs for added properties.

attributesToRemove

List of property names to delete.

public nonisolated func removeAttribute(
name: String
)

Removes an attribute.

Parameters

name

Name of a property to delete.

public nonisolated func getAttributeValue(
name: String
) -> AttributeValue

Gets an attribute.

Parameters

name

Name of a property to retrieve.

Returns
Properties

var attributeNames​

Retrieving a list of properties.

var changed​

Channel<[String]>

Gets a channel notifying about the change of the properties.

AudioSettings​

Class for managing the sound.
All methods can be called from any thread.

Extends: Hashable
public static func == (lhs: AudioSettings, rhs: AudioSettings) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public static nonisolated func `get`(
context: Context
) -> AudioSettings?

Obtains an object for managing application sound. Returns Null value if the audio driver is unavailable.

Parameters

context

Returns
Properties

var volume​

Sound volume level (0-100).

var mute​

Sound playing is disabled.

var audioFocusPolicy​

Behavior of other applications sounds with the requested focus.

BaseCamera​

Camera.

Extends: Hashable
public static func == (lhs: BaseCamera, rhs: BaseCamera) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

public nonisolated func clone() -> BaseCamera

Creates a copy of the current camera.

Returns
public nonisolated func setPosition(
position: CameraPosition
) throws

Sets a new camera position.
The call interrupts flyover and gesture handling, and resets the tracking mode.

Parameters
public nonisolated func changePosition(
positionChange: CameraPositionChange
) throws

Changes only certain parameters of the camera position.
The call interrupts flyover and gesture handling and resets following changed parameters. If coordinates are changed, following the style scaling level and bearing is also reset.

Parameters

positionChange

public nonisolated func setZoomRestrictions(
zoomRestrictions: CameraZoomRestrictions
) throws

Sets a new range of zoom level limits.

Parameters

zoomRestrictions

New range of zoom-level restrictions.

public nonisolated func setPositionPoint(
positionPoint: CameraPositionPoint
) throws

Sets the new position relative to the area of the screen limited by the paddings.

Parameters

positionPoint

New position relative to the area of the screen bounded by the paddings.

public nonisolated func setViewPoint(
viewPoint: CameraViewPoint?
) throws

Sets the new viewpoint relative to the full size of the map viewport.

Parameters

viewPoint

New viewpoint relative to the full size of the map viewport. If nil is passed, follows the point of camera position.

Properties

var projection​

Projection.

var position​

Gets the current camera position.

var zoomRestrictions​

Gets the current zoom level limits.

var deviceDensity​

Gets the DPI ratio to the base DPI of the device.

var size​

Gets the viewport size.

var padding​

Gets the current padding from the edges of the screen.

var positionPoint​

Screen point to which the camera position is anchored is set with the padding.

var viewPoint​

Viewpoint relative to the full size of the map viewport.

var visibleArea​

Intersection area between the camera's visibility pyramid and the map surface.

var visibleRect​

Volume rectangle of the visible area of the map.

var maxTiltRestriction​

(any StyleZoomToTiltRelation)?

Gets the current function of the dependence of the maximum camera tilt angle on the style zoom level.

var viewportRestriction​

Gets the viewport restrictions.

var changed​

Channel<CameraChange>

Reasons for camera state changes.
Changed properties are available in the corresponding channels.

BearingFollowController​

Controller following the map bearing.

public convenience init(
bearingSource: BearingSource,
animationDuration: TimeInterval = 1,
valueThreshold: Bearing = Bearing(value: 1)
)

Creates a controller following the map bearing.

Parameters

bearingSource

Source of bearing information.

animationDuration

TimeInterval

Non-negative duration of changing the actual bearing.

valueThreshold

Non-negative threshold of changing the actual bearing taken into account.

BoolRouteLongAttribute​

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.

Extends: Hashable
public static func == (lhs: BoolRouteLongAttribute, rhs: BoolRouteLongAttribute) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

public nonisolated func entry(
point: RoutePoint
) -> BoolRouteLongEntry?

Element in which the point falls.

Parameters
public nonisolated func entries(
begin: RoutePoint,
end: RoutePoint
) -> [BoolRouteLongEntry]

Elements partially or completely covered by the [begin, end] segment.

Parameters
Properties

var size​

Number of elements.

var isEmpty​

Elements missing.

var first​

First element.

var last​

Last element.

var entries​

BufferedChannel​

Extends: Channel<Value>
Properties

var value​

Value?

Camera​

Camera for triggering map movement and tracking settings.

Extends: BaseCamera
Methods
public nonisolated func move(
moveController: CameraMoveController
) -> Future<CameraAnimatedMoveResult>
Parameters

moveController

Animated camera movement controller.

Returns
Future<>
public nonisolated func move(
position: CameraPosition,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Parameters

position

Camera end position.

time

TimeInterval

Time allocated for moving the map.

animationType

Type of animation when moving the camera.

Returns
Future<>
public nonisolated func move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>

Starts an animated map move using the built-in map move controller.
Resets the current map tracking mode and interrupts gesture processing.

Parameters

point

Point of the final camera position.

zoom

Scaling level in the final camera position.

tilt

Tilt in the final camera position or an empty value if you need to use a value from the FollowController or the current value depending on the active tracking mode.

bearing

Bearing in the final camera position.

time

TimeInterval

Time allocated for moving the map.

animationType

Type of animation when moving the camera.

Returns
Future<>
public nonisolated func processMovementAndStop()

Sets the camera position according to the current time and stopping the animated movement.
The call interrupts the camera flyover and gesture processing and resets the tracking mode.

public nonisolated func setBehaviour(
behaviour: CameraBehaviour
)

Switch of the camera tracking mode. If a new mode is more restricted then the current one, the call will interrupt the flyover and gesture handling.

Parameters
public nonisolated func addFollowController(
followController: FollowController
)

Adds the follow controller.

Parameters

followController

public nonisolated func removeFollowController(
followController: FollowController
)

Removes the follow controller.

Parameters

followController

public nonisolated func setCustomFollowController(
followController: CustomFollowController
)

Adding the follow controller implemented on the platform.

Parameters

followController

public nonisolated func removeCustomFollowController()

Removes the follow controller implemented on the platform.

func setPosition(point: GeoPoint, zoom: Zoom) throws
Parameters

point

zoom

func setPosition(point: GeoPoint) throws
Parameters
func sinkOnStatefulChangesOnMainThread<T: Sendable>(
reason: CameraChangeReasonOptionSet,
receiveValue: @escaping @Sendable (T) -> Void
) -> Cancellable

Subscribes to Channel changes specifying the change type in the main queue. Returns the current Camera value for the specified CameraChangeReasonOptionSet change type.

Parameters
func sinkOnStatefulChanges<T: Sendable>(
on queue: DispatchQueue,
reason: CameraChangeReasonOptionSet,
receiveValue: @escaping @Sendable (T) -> Void
) -> Cancellable

Subscribes to Channel changes specifying the change type in the specified queue. Returns the current Camera value for the specified CameraChangeReasonOptionSet change type.

Parameters

queue

DispatchQueue

reason

Returns
Properties

var state​

Obtaining the current status of the camera.

var behaviour​

Camera tracking mode.

CameraNotifier​

Warns you if you enter the coverage area of a traffic camera.

Extends: Hashable
public static func == (lhs: CameraNotifier, rhs: CameraNotifier) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init(
model: Model
)

Navigation extension that warns you if you enter the coverage area of a traffic camera.

Parameters

model

Model of the navigator whose status is being tracked.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

Properties

var cameraProgressChannel​

StatefulChannel<CameraProgressInfo?>

Progress of passing the traffic camera coverage area.

var cameraProgress​

Progress of passing the traffic camera coverage area.

CameraRouteAttribute​

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.

Extends: Hashable
public static func == (lhs: CameraRouteAttribute, rhs: CameraRouteAttribute) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

public nonisolated func entries(
begin: RoutePoint,
end: RoutePoint
) -> [CameraRouteEntry]

Elements that fall within the [begin, end) range.

Parameters
public nonisolated func findNearBackward(
point: RoutePoint
) -> CameraRouteEntry?

Finds the nearest element with position < = point.
The operation complexity is log2(N), where N = size.

Parameters
public nonisolated func findNearForward(
point: RoutePoint
) -> CameraRouteEntry?

Finds the nearest element with position < = point.
The operation complexity is log2(N), where N = size.

Parameters
Properties

var size​

Number of elements.

var isEmpty​

Elements missing.

var first​

First element.

var last​

Last element.

var entries​

All elements.

CameraTransactionGuard​

Extends: Hashable
public static func == (lhs: CameraTransactionGuard, rhs: CameraTransactionGuard) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

CancelEvent​

Event of canceling the current action.

Extends: Event
public convenience init()

Cancellable​

Cancellation token for a running operation.

Implements: ICancellable
public init(
cancel: @escaping () -> Void,
release: @escaping () -> Void = {}
)
public convenience init()

Make a cancellation token that cancels nothing.

public static func ==(lhs: Cancellable, rhs: Cancellable) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func cancel()

May be called any number of times from any queue.

public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

CategoriesPage​

Page of category query results.

Extends: Hashable
public static func == (lhs: CategoriesPage, rhs: CategoriesPage) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public nonisolated func fetchPrevPage() -> Future<CategoriesPage?>

Gets the previous page of results.

public nonisolated func fetchNextPage() -> Future<CategoriesPage?>

Gets the next page of results.

Properties

var items​

Categories on this page.

Category​

Directory category.

Extends: Hashable
public static func == (lhs: Category, rhs: Category) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

Properties

var id​

Category identifier.

var type​

Category type.

var name​

Category name.

var alias​

Transliterated category name.
Can be an empty string if not available.

var title​

Title for display in the UI.
Can be an empty string if not available.

var caption​

Short caption for the icon, for display in the UI.
Can be an empty string if not available.

var seoName​

SEO alias.
Can be an empty string if not available.

var keyword​

Keyword used to find the category.
Can be an empty string if not available.

var tag​

Unique name that can be used as part of the icon file name.
Can be an empty string if not available.

var iconUrl​

Link to the image.
Can be an empty string if not available.

var suggestIcon​

Category icon for search suggestions.
Can be an empty string if not available.

var parentId​

Parent category identifier.
Can be an empty string if not available.

var branchCount​

Number of organization branches in this category.

var orgCount​

Number of organizations in this category.

var geoCount​

Number of geo objects in this category.

var isReviewableOnFlamp​

Whether reviews for organizations in this category are allowed on flamp.ru.

var children​

Child categories.

CategoryGetByIdsQueryBuilder​

Builder for the query to get categories by identifiers.

Extends: Hashable
public static func == (lhs: CategoryGetByIdsQueryBuilder, rhs: CategoryGetByIdsQueryBuilder) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init(
ids: [RubricId]
)

Starts building a query to get categories by identifiers.

Parameters
Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public nonisolated func setGeoContext(
geoContext: CategoryGeoContext?
) -> CategoryGetByIdsQueryBuilder

Sets the geographic context of the query. If not set, the geography is determined using LocationService.

Parameters
public nonisolated func setLocale(
locale: Locale?
) -> CategoryGetByIdsQueryBuilder

Sets the locale for the category query.

Parameters
public nonisolated func build() -> CategoryQuery

Builds the category query.

CategoryListQueryBuilder​

Builder for the category list query.

Extends: Hashable
public static func == (lhs: CategoryListQueryBuilder, rhs: CategoryListQueryBuilder) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init()

Starts building a category list query.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public nonisolated func setParentId(
parentId: RubricId?
) -> CategoryListQueryBuilder

Sets the parent for the category list query.

Parameters
public nonisolated func setSortType(
sortType: CategorySortType
) -> CategoryListQueryBuilder

Sets the sort order for the category list query.

Parameters
public nonisolated func setGeoContext(
geoContext: CategoryGeoContext?
) -> CategoryListQueryBuilder

Sets the geographic context of the query. If not set, the geography is determined using LocationService.

Parameters
public nonisolated func setPageSize(
pageSize: UInt32
) -> CategoryListQueryBuilder

Sets the page size.

Parameters
public nonisolated func setLocale(
locale: Locale?
) -> CategoryListQueryBuilder

Sets the locale for the category query.

Parameters
public nonisolated func build() -> CategoryQuery

Builds the category query.

CategoryQuery​

Category query.

Extends: Hashable
public static func == (lhs: CategoryQuery, rhs: CategoryQuery) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

CategorySearchQueryBuilder​

Builder for a text-based category search query.

Extends: Hashable
public static func == (lhs: CategorySearchQueryBuilder, rhs: CategorySearchQueryBuilder) -> Bool

Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .

public convenience init(
queryText: String
)

Starts building a text-based category search query.

Parameters

queryText

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

public nonisolated func setGeoContext(
geoContext: CategoryGeoContext?
) -> CategorySearchQueryBuilder

Sets the geographic context of the query. If not set, the geography is determined using LocationService.

Parameters
public nonisolated func setPageSize(
pageSize: UInt32
) -> CategorySearchQueryBuilder

Sets the page size.

Parameters
public nonisolated func setLocale(
locale: Locale?
) -> CategorySearchQueryBuilder

Sets the locale for the category query.

Parameters
public nonisolated func build() -> CategoryQuery

Builds a category query.

Channel​

public static func == (lhs: Channel<Value>, rhs: Channel<Value>) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

func sinkOnMainThread(_ receiveValue: @Sendable @escaping (Value) -> Void) -> Cancellable

Get the Channel result in the main thread.

func sink(on queue: DispatchQueue, receiveValue: @Sendable @escaping (Value) -> Void) -> Cancellable

Subscribe to a stream of values over time. The subscription never fails.

Parameters

queue

DispatchQueue
Returns

CheckableGroupedItem​

Single element from GroupCheckableItem.

Extends: Hashable
public static func == (lhs: CheckableGroupedItem, rhs: CheckableGroupedItem) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

Properties

var text​

Gets a textual description of the element.

var values​

Gets the list of values used for filtering. Commonly, only one value is used.

var isChecked​

Gets the element state.

CheckableItem​

Basic representation of a checkable element from CheckableItemsGroup.

Extends: Hashable
public static func == (lhs: CheckableItem, rhs: CheckableItem) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of this instance.

Properties

var type​

Gets the type of the checkable element.

var filterType​

Gets a list of filters describing the current state of the widget. Can be used during creation of a search query.

CheckableItemsGroup​

Widget for presenting a group of selectable elements.

Extends: Widget
Properties

var items​

Gets the group of widget elements.

Checkbox​

Checkbox widget.

Extends: Widget
Properties

var filterType​

Gets the filter type presented by the widget.

var checkedText​

Gets the caption of the selected checkbox.

var uncheckedText​

Gets the caption of the unselected checkbox.

var values​

Gets the list of values used for filtering. Commonly, only one value is used.

var isChecked​

Gets the widget state.

Circle​

Circle.

public convenience init(
options: CircleOptions
) throws
Parameters
Methods
public nonisolated func setPosition(
position: GeoPoint
) throws

Sets the location of the circle center.

Parameters

position

public nonisolated func setRadius(
radius: Meter
) throws

Sets the circle radius.

Parameters

radius

Properties

var position​

Location of the center of a circle.

var radius​

Radius of a circle.

var color​

Circle fill color.

var strokeWidth​

Circle border line width.

var strokeColor​

Circle border color.

var dashedStrokeOptions​

ClusterObject​

Cluster of objects.

Extends: MapObject
Properties

var position​

Gets the cluster position on the map.

var objectCount​

Gets the number of markers in the cluster.

var objects​

Gets the list of markers in the cluster.

var geometryObject​

Obtains the geometric object of the cluster.

CommonGestureSettings​

Extends: Hashable
public static func == (lhs: CommonGestureSettings, rhs: CommonGestureSettings) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

Properties

var recognizeSettings​

General settings of gesture recognition.

CompassControlModel​

Model of the compass control. The control consists of a compass button that, when clicked, causes the map camera to change its angle in the direction of north. If the map camera is facing the north, the control must be hidden. Thread-safe.

Extends: Hashable
public static func == (lhs: CompassControlModel, rhs: CompassControlModel) -> Bool

Returns a Boolean value indicating whether two values are equal.

public convenience init(
map: Map
)
Parameters

map

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

public nonisolated func onClicked()
Properties

var bearingChannel​

StatefulChannel<Bearing>

var bearing​

ComplexGeometry​

Complex geometry, contains a set of simple or complex geometries.

Extends: Geometry
public convenience init(
geometries: [Geometry]
)
Parameters

geometries

Properties

var elements​

Container​

Central object for accessing iOS Mobile SDK features.

Extends: @unchecked Sendable
public required init(
keySource: KeySource = .default,
logOptions: LogOptions = .default,
httpClientForRequest: IHTTPClient? = nil,
httpOptions: HttpOptions = HttpOptions(),
locationProvider: ILocationProvider? = nil,
magneticHeadingProvider: IMagneticHeadingProvider? = nil,
personalDataCollectionOptions: PersonalDataCollectionOptions = .default,
vendorConfig: VendorConfig = .none
)

Container builder.

Parameters

keySource

Settings of the key to access 2GIS services.

logOptions

Logging settings.

httpClientForRequest

Network client for sending HTTP requests.

httpOptions

HTTP client settings (such as caching).

locationProvider

Geolocation source. If nil is passed, the default source is used.

magneticHeadingProvider

Source of a magnetic needle heading.

personalDataCollectionOptions

Data collection service settings.

vendorConfig

Overwrites settings for working in an autonomous environment.

Methods
public func makeDirectoryViewsFactory(theme: DirectoryViewTheme = .default) throws -> IDirectoryViewsFactory

Create a factory of directory SwiftUI elements.

Parameters
public func makeMapFactory(
options: MapControllerOptions = .init(),
mapViewOptions: MapViewOptions = .default
) throws -> IMapFactory
Parameters
public func makeMapFactory(
mapController: MapController,
mapViewOptions: MapViewOptions = .default
) throws -> IMapFactory
Parameters

mapController

Previously created MapController.

mapViewOptions

Initial settings of MapUIView/MapView.

Returns
public func makeRouteEditorFactory() throws -> IRouteEditorFactory

Creates a factory of route editors.

public func makeRoutingViewsFactory(options: NavigationViewOptions = .default) throws -> IRoutingViewsFactory

Creates a factory of a layer for building routes with SwiftUI controls.

Parameters
public func makeNavigationUIViewFactory(options: NavigationViewOptions = .default) throws -> INavigationUIViewFactory

Creates a factory of navigator layer with UIKit controls.

Parameters

options

Custom settings.

Returns
public func makeNavigationViewFactory(options: NavigationViewOptions = .default) throws -> INavigationViewFactory

Creates a factory of a navigator layer.

Parameters

options

Custom settings.

Returns
public func makeRoadEventUIViewFactory(options: RoadEventInfoViewOptions = .default) throws -> IRoadEventUIViewFactory

Creates a factory of a UIKit road event card.

Parameters
public func makeRoadEventViewFactory(options: RoadEventInfoViewOptions = .default) throws -> IRoadEventViewFactory

Creates a SwiftUI factory of a road event card.

Parameters

options

Custom settings.

Returns
Properties

var context​

Root opaque SDK object container. Used as an argument to the SDK API.

var markerViewFactory​

any IMarkerUIViewFactory

UIView marker factory for map.

var styleFactory​

any IStyleFactory

Constructor of standard and custom styles.

var searchManagerFactory​

any ISearchManagerFactory

Factory of directory search engines.

var sourceFactory​

any ISourceFactory

Factory of map data sources.

var imageFactory​

any IImageFactory

Factory of map object images.

var modelFactory​

any IModelFactory

Model factory for map objects.

var localeManager​

Manager of application locale settings.

var locationService​

Current ILocationService implementation used within the SDK and working via ILocationProvider.

let httpOptions​

HTTP client settings.

var audioSettings​

Object for configuring sounds.

var voiceManager​

Object for interacting with the list of voice packages of the navigator.

Context​

Context - the environment required for the SDK to work.

Extends: Hashable
public static func == (lhs: Context, rhs: Context) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them to the given hasher.

Parameters

hasher

Hasher

Hasher to use when combining the components of this instance.

CoordinatesFollowController​

Controller of following the map position coordinates.

public convenience init(
animationDuration: TimeInterval = 1,
valueThreshold: Meter = Meter(value: 0.10000000149011612)
)

Creates a controller following the camera position coordinates.

Parameters

animationDuration

TimeInterval

Duration of changing the actual position.

valueThreshold

Non-negative threshold of the actual position change taken into account.

CrossingTypeRouteLongAttribute​

Container storing an extended route attribute. Each element is stored as a pair consisting of a point and an attribute value. The attribute value is effective from the current point to the point, where the action of the next element attribute starts.

Extends: Hashable
public static func == (lhs: CrossingTypeRouteLongAttribute, rhs: CrossingTypeRouteLongAttribute) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

public nonisolated func entry(
point: RoutePoint
) -> CrossingTypeRouteLongEntry?

Element that contains the specified point.

Parameters
public nonisolated func entries(
begin: RoutePoint,
end: RoutePoint
) -> [CrossingTypeRouteLongEntry]

Elements falling within the [begin, end) interval.

Parameters
Properties

var size​

Number of elements.

var isEmpty​

No elements.

var first​

var last​

var entries​

DataPrefetcher​

Controller for prefetching map data for a route. Loads data from sources that support caching. Data is loaded for route segments with segment_size length ahead up to max_prefetch_distance distance. As segments are traversed, their data is removed from cache and replaced with data for subsequent segments.

Extends: Hashable
public static func == (lhs: DataPrefetcher, rhs: DataPrefetcher) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

Properties

var enabled​

Whether map data prefetching for a route is enabled. Default value is true.<p>Can be used when the navigator is in Disabled` status.

var minZoom​

Minimum zoom level for map data prefetching. Default value is 8.

var maxZoom​

Maximum zoom level for map data prefetching. Default value is 16.

var radius​

Coverage radius on the map for map data prefetching. Default value is 128.

var segmentSize​

Size of the minimum route segment for map data prefetching, in km. Default value is 2.

var maxPrefetchDistance​

Distance ahead of the current position on the route for map data prefetching, in km. Default value is 4.

DefaultInstallFallback​

Factory for creating predefined strategies for package installation or update errors (InstallFallback).

Extends: Hashable
public static func == (lhs: DefaultInstallFallback, rhs: DefaultInstallFallback) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

public static nonisolated func noOperation() -> InstallFallback

Creates a fallback that performs no operations (no-op).

public static nonisolated func retryOnError(
retryCount: UInt64
) -> InstallFallback

Creates a fallback that repeatedly calls the install() method in case of a package download error.

Parameters

retryCount

Limit of repeated calls of the install() method before stopping execution.

Returns

DefaultRoadEventFilter​

Factory for creating standard time-based filters for road events.

Extends: Hashable
public static func == (lhs: DefaultRoadEventFilter, rhs: DefaultRoadEventFilter) -> Bool

Returns a Boolean value indicating whether two values are equal.

Methods
public func hash(into hasher: inout Hasher)

Hashes the essential components of this value by passing them into the specified hasher.

Parameters

hasher

Hasher

The hasher to use when combining the components of the instance.

public static nonisolated func create(
context: Context,
displayCategories: RoadEventDisplayCategoryOptionSet?,
startTimeCutoff: TimeInterval?
) -> RoadEventFilter

Creates a filter of road events displayed on the map.

Parameters

context

Context.

displayCategories

Categories of events to display on the map. If the parameter is not specified, category filtering is not applied.

startTimeCutoff

TimeInterval?

Maximum allowed event start time relative to the current time. Events with start_time later than this value are hidden. For example, +1d hides events that start later than one day from now. Events without start_time are not filtered. If the parameter is not specified, no filtering by start time is applied.

Returns

DgisMapObject​

2GIS map object.
Information about an object can be obtained in the directory.

Extends: MapObject
Properties

var id​

Stable numeric object ID.

DgisSource​

Main interface of 2GIS data sources.

Extends: Source
Methods
public static nonisolated func createDgisSource(
context: Context,
workingMode: DgisSourceWorkingMode = DgisSourceWorkingMode.hybridOnlineFirst
) -> Source

Creates a source that obtains data from 2GIS servers or uses preloaded data.

Parameters

context

workingMode

Returns
public static nonisolated func createImmersiveDgisSource(
context: Context
) -> Source

Creates a source that obtains realistic data from 2GIS servers.

Parameters

context

Returns
public static nonisolated func createReliefDgisSource(
context: Context
) -> Source

Creates a source that obtains relief from 2GIS servers.

Parameters

context

Returns
public nonisolated func setHighlighted(
directoryObjectIds: [DgisObjectId],
highlighted: Bool
)

Sets or removes object highlighting.
The method adds the “selected” attribute to the object, which can be used in styles.

Parameters

directoryObjectIds

IDs of the objects being changed.

highlighted

Sets or removes a selection.

Properties

var highlightedObjectsChannel​

StatefulChannel<[DgisObjectId]>

Obtaining a list of IDs of the highlighted objects.

var highlightedObjects​

Obtaining a list of IDs of the highlighted objects.

DirectMapControlBeginEvent​

Event to start direct control of the map. Tells the map to process direct map control events. Direct control events only work from DirectMapControlBeginEvent to DirectMapControlEndEvent. After the sequence of direct control events is complete, kinematics can start. Kinematics uses the occurrence time of the event, so it is better to use the time received from the system rather than fill in the value during processing. For now, kinematics only work for moving the map, but not for rotating and zooming.

Extends: Event
public convenience init()

DirectMapControlEndEvent​

Event of ending direct map control. Ends direct map control that was started after receiving the DirectMapControlBeginEvent event. Direct map control events are described in DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
timestamp: TimeInterval
)
Parameters

timestamp

TimeInterval

DirectMapRotationEvent​

Direct map rotation event. The events of direct map control are described in DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
bearingDelta: Bearing,
timestamp: TimeInterval,
rotationCenter: ScreenPoint? = nil
)
Parameters

bearingDelta

Change of the map rotation angle, in degrees. Positive values correspond to the direction of rotation counterclockwise.

timestamp

TimeInterval

Time of the system event generation.

rotationCenter

Point on the screen relative to which the map rotates. If not set, rotation is done relative to the map position point.

Properties

var bearingDelta​

Changes the rotation angle of the map.

var rotationCenter​

Point on the screen relative to which the map rotates.

DirectMapScalingEvent​

Event of direct map scaling. Direct map control events are described in DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
zoomDelta: Float,
timestamp: TimeInterval,
scalingCenter: ScreenPoint? = nil
)
Parameters

zoomDelta

Float

Value by which the current scale value will change.

timestamp

TimeInterval

Time of the system event generation.

scalingCenter

Point on the screen relative to which the map scales. If not set, scaling is done relative to the map position point.

Properties

var zoomDelta​

Float

Value by which the current scale value will change.

var scalingCenter​

Point on the screen relative to which the map scales.

DirectMapShiftEvent​

Direct map shift event. Direct map control events are described in DirectMapControlBeginEvent.

Extends: InputEvent
public convenience init(
screenShift: ScreenShift,
shiftedPoint: ScreenPoint,
timestamp: TimeInterval
)
Parameters

screenShift

Change in the screen position of the map relative to the previous one, in pixels.

shiftedPoint

Center point from which the map is shifted.

timestamp

TimeInterval

Time of the system event generation.

Properties

var screenShift​

Changing the map screen position.