class
ActivityTracker
Extends: Hashable
public static func == (lhs: ActivityTracker, rhs: ActivityTracker) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
platformContext: Context,
model: Model,
speedBound: Double = 4.2,
timeThreshold: TimeInterval = 20
)
Расширение навигатора, которое отслеживает активность пользователя и выдает сигнал, когда пользователь перестал пользоваться навигатором и его можно выключить.
Parameters
platformContext
Контекст.
model
Модель навигатора, состояние которого отслеживается.
speedBound
Верхняя граница скорости в м/с, при превышении которой в состоянии Finished навигатора считается, что навигатор активен, т.е. движение продолжается.
timeThreshold
TimeInterval
Время, в течение которого в состоянии Finished навигатора отслеживается скорость движения ниже пороговой для определения состояния неактивности навигатора. Если в течение этого времени скорость движения меньше установленного порога или нет данных о локации и скорости, навигатор считается неактивным.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var stopChannel
StatefulChannel<Bool>
Флаг, активное состояние которого указывает на то, что навигатор необходимо остановить. Если в состоянии Finished навигация прекращается, т.е. движение останавливается или его скорость становится ниже порогового значения, и если такое состояние сохраняется некоторое время, то устанавливается флаг устанавливается в true, в противном случае он имеет значение false.
var stop
Флаг, активное состояние которого указывает на то, что навигатор необходимо остановить. Если в состоянии Finished навигация прекращается, т.е. движение останавливается или его скорость становится ниже порогового значения, и если такое состояние сохраняется некоторое время, то устанавливается флаг устанавливается в true, в противном случае он имеет значение false.
AlternativeRouteSelector
Выбор альтернативного маршрута.
Extends: Hashable
public static func == (lhs: AlternativeRouteSelector, rhs: AlternativeRouteSelector) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func selectAlternativeRoute(
trafficRoute: TrafficRoute
)
Выбор альтернативного маршрута. Если переданный маршрут не соответствует одному из актуальных альтернативных маршрутов, ничего не происходит. В противном случае соответствующий альтернативный маршрут становится текущим активным маршрутом.
Parameters
trafficRoute
Альтернативный маршрут, который должен быть выбран в качестве текущего активного маршрута.
AlternativeRoutesProviderSettings
Настройки поиска альтернативных маршрутов и маршрута лучше.
Extends: Hashable
public static func == (lhs: AlternativeRoutesProviderSettings, rhs: AlternativeRoutesProviderSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var alternativeRoutesEnabled
Флаг включения/выключения предложения альтернативных маршрутов. По умолчанию предложение альтернативных маршрутов включено.
var betterRouteEnabled
Флаг включения/выключения предложения маршрута лучше. По умолчанию предложение маршрута лучше включено.
var routeSearchDelay
Задержка перед поиском альтернативных маршрутов при старте поездки по маршруту или после перехода на какой-либо другой маршрут. Должна быть не меньше 5 секунд. По умолчанию 20 секунд.
var betterRouteTimeCostThreshold
Минимальная разница во времени движения между исходным маршрутом и альтернативным маршрутом, при которой альтернативный маршрут считается маршрутом лучше.
var betterRouteLengthThreshold
Минимальная суммарная длина рёбер маршрута, которые отличаются между исходным маршрутом и альтернативным маршрутом, при которой альтернативный маршрут считается маршрутом лучше.
var routerType
Тип поисковика для поиска альтернативных маршрутов.
AnimationSettings
Настройки анимаций объектов карты. Применяются для слоев стилей, в которых указан источник модели. Например, такими слоями являются слои с типами “3D model” и “Directional model”.
Extends: Hashable
public static func == (lhs: AnimationSettings, rhs: AnimationSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var animationIndex
Int32?
Получение индекса текущей анимации модели. Если null, то используется значение из стилей.
var sceneIndex
Int32?
Получение индекса текущей сцены модели. Если null, то используется значение из стилей.
var sceneName
Получение названия текущей сцены модели. Если null, то используется значение из стилей.
var animationRepeatCount
Int32?
Получение количества повторений анимации модели. Если null, то используется значение из стилей.
var animationSpeed
Float?
Получение скорости проигрывания анимации модели. Если null, то используется значение из стилей.
Attributes
Интерфейс для управления свойствами объекта карты.
Extends: Hashable
public static func == (lhs: Attributes, rhs: Attributes) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func setAttributeValue(
name: String,
value: AttributeValue
)
Установка свойства.
Parameters
public func setAttributeValues(
values: [String: AttributeValue],
attributesToRemove: [String] = []
)
Установка набора свойств.
Parameters
values
String[ : ]
Набор пар “имя”:“значение” для добавляемых свойства.
attributesToRemove
Список имён свойств, которые нужно удалить.
public func removeAttribute(
name: String
)
Удаление свойства.
Parameters
name
Имя свойства для удаления.
public func getAttributeValue(
name: String
) -> AttributeValue
Получение свойства.
Parameters
Properties
var attributeNames
Получение списка свойств.
var changed
Channel<[String]>
Получение канала, уведомляющего об изменении свойств.
AudioSettings
Класс для управления звуком.<br/>Все методы могут вызываться из любого потока.
Extends: Hashable
public static func == (lhs: AudioSettings, rhs: AudioSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var volume
Уровень громкости звука (0-100).
var mute
Проигрывание звука отключено.
var audioFocusPolicy
Поведения звуков других приложений при запрошенном фокусе.
BaseCamera
Камера.
Extends: Hashable
public static func == (lhs: BaseCamera, rhs: BaseCamera) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func setPosition(
position: CameraPosition
) throws
Установка новой позиции камеры.<br/>Вызов прерывает перелёт и обработку жестов, а также сбрасывает слежение за позицией, стилевым уровнем масштабирования, наклоном и направлением.
Parameters
position
public func changePosition(
positionChange: CameraPositionChange
) throws
Изменение только части параметров позиции камеры.<br/>Вызов прерывает перелёт и обработку жестов, а также сбрасывает слежение за изменёнными параметрами, а при изменении координат также и слежение за стилевым уровнем масштабирования и направлением.
Parameters
positionChange
public func setZoomRestrictions(
zoomRestrictions: CameraZoomRestrictions
) throws
Функция устанавливает новый диапазон ограничений уровня масштабирования.
Parameters
zoomRestrictions
Новый диапазон ограничений уровня масштабирования.
public func setPositionPoint(
positionPoint: CameraPositionPoint
) throws
Функция устанавливает новую позицию относительно области экрана, ограниченной отступами.
Parameters
positionPoint
новая позиция относительно области экрана, ограниченной отступами.
Properties
var projection
Проекция.
var positionChannel
StatefulChannel<CameraPosition>
Получение текущей позиции камеры.
var position
Получение текущей позиции камеры.
var zoomRestrictionsChannel
StatefulChannel<CameraZoomRestrictions>
Получение актуальных ограничений уровня масштабирования.
var zoomRestrictions
Получение актуальных ограничений уровня масштабирования.
var deviceDensityChannel
StatefulChannel<DeviceDensity>
Получение отношения DPI к базовому DPI устройства.
var deviceDensity
Получение отношения DPI к базовому DPI устройства.
var sizeChannel
StatefulChannel<ScreenSize>
Получение размера области просмотра.
var size
Получение размера области просмотра.
var paddingChannel
StatefulChannel<Padding>
Получение текущих отступов от краёв экрана.
var padding
Получение текущих отступов от краёв экрана.
var positionPointChannel
StatefulChannel<CameraPositionPoint>
Точка экрана, к которой привязана позиция камеры, задаётся с учётом отступов (padding).
var positionPoint
Точка экрана, к которой привязана позиция каме ры, задаётся с учётом отступов (padding).
var visibleArea
Область пересечения пирамиды видимости камеры и поверхности карты.
var visibleRectChannel
StatefulChannel<GeoRect>
Объемлющий прямоугольник видимой области карты.
var visibleRect
Объемлющий прямоугольник видимой области карты.
var maxTiltRestrictionChannel
StatefulChannel<StyleZoomToTiltRelation?>
Получение текущей функции зависимости максимального угла наклона камеры от стилевого уровня масштабирования.
var maxTiltRestriction
Получение текущей функции зависимости максимального угла наклона камеры от стилевого уровня масштабирования.
var viewportRestrictionChannel
StatefulChannel<GeoRect?>
Получение ограничения на область видимости.
var viewportRestriction
Получение ограничения на область видимости.
BearingFollowController
Контроллер слежения за направлением карты.
Extends: FollowController
public convenience init(
bearingSource: BearingSource,
animationDuration: TimeInterval = 1,
valueThreshold: Bearing = Bearing(value: 1)
)
Создание контроллера слежения за направлением карты.
Parameters
bearingSource
источник информации о направлении.
animationDuration
TimeInterval
неотрицательная длительность изменения реального направления.
valueThreshold
неотрицательное пороговое значение учитываемого изменения реального направления.
BoolRouteLongAttribute
Контейнер, который хранит протяженный атрибут маршрута. Каждый элемент хранится в виде пары, состоящей из точки и значения элемента атрибута. Действие атрибута начинается с данной точки и заканчивается в следущей точке, начиная с которой начинается действие атрибута следующего элемента.
Extends: Hashable
public static func == (lhs: BoolRouteLongAttribute, rhs: BoolRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> BoolRouteLongEntry?
Элемент, в который попадает заданная точка.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [BoolRouteLongEntry]
Элементы, частично или полностью покрываемые отрезком [begin, end].
Parameters
Properties
var size
Количество элементов.
var isEmpty
Элементы отсутствуют.
var first
Первый элемент.
var last
Последний элемент.
var entries
Все элементы.
BufferedChannel
Extends: Channel<Value>
Properties
var value
Value?
Camera
Камера для запуска перемещения карты и настроек слежения.
Extends: BaseCamera
Methods
public func move(
moveController: CameraMoveController
) -> Future<CameraAnimatedMoveResult>
Запуск перемещения карты.<br/>Сбрасывает текущий режим слежения карты и прерывает обработку жестов.
Parameters
public func move(
position: CameraPosition,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Запуск анимированного перемещения карты с использованием встроенного контроллера перемещений карты.<br/>Сбрасывает слежение за позицией, уровнем масштабирования, наклоном и направлением и прерывает обработку жестов.
Parameters
position
Конечная позиция камеры.
time
TimeInterval
Время, выделенное на перемещение карты.
animationType
Тип анимации при перемещении камеры.
Returns
Future<>
public func move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Запуск анимированного перемещения карты с использованием встроенного контроллера перемещений карты.
Parameters
point
точка конечной позиции камеры
zoom
уровень масштабирования в конечной позиции камеры
tilt
наклон в конечной позиции камеры или пустое значение, если нужно в зависимости от активного режима слежения использовать значение из follow controller’а или текущее значение
bearing
поворот в конечной позиции камеры
time
TimeInterval
время, выделенное на перемещение карты
animationType
тип анимации при перемещении камеры
Returns
Future<>
public func processMovementAndStop()
Установка позиции камеры в соответствие с текущим временем и прекращение анимированного перемещения.<br/>Вызов прерывает перелёт и обработку жестов, а также сбрасывает слежение за позицией, уровнем масштабирования и направлением.
public func setBehaviour(
behaviour: CameraBehaviour
)
Смена режима слежения камеры. Если н овый режим более ограниченный, чем текущий, вызов прервёт перелёт и обработку жестов.
Parameters
behaviour
public func addFollowController(
followController: FollowController
)
Добавление контроллера слежения.
Parameters
followController
public func removeFollowController(
followController: FollowController
)
Удаление контроллера слежения.
Parameters
followController
public func setCustomFollowController(
followController: CustomFollowController
)
Добавление контроллера слежения, реализова нного на платформе.
Parameters
followController
public func removeCustomFollowController()
Удаление контроллера слежения, реализованного на платформе.
Properties
var stateChannel
StatefulChannel<CameraState>
Получение актуального состояния камеры.
var state
Получение актуального состояния камеры.
var behaviourChannel
StatefulChannel<CameraBehaviourChange>
Режим слежения камеры.
var behaviour
Режим слежения камеры.
CameraNotifier
Предупреждает о попадании в зону действия дорожной камеры.
Extends: Hashable
public static func == (lhs: CameraNotifier, rhs: CameraNotifier) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
model: Model
)
Расширение навигатора, которое предупреждает о попадании в зону действия дорожной камеры.
Parameters
model
Модель навигатора, состояние которого отслеживается.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var cameraProgressChannel
StatefulChannel<CameraProgressInfo?>
Прогресс прохождения зоны действия дорожной камеры.
var cameraProgress
Прогресс прохождения зоны действия дорожной камеры.
CameraRouteAttribute
Контейнер, который описывает точечный атрибут маршрута. Каждый элемент хранится в виде точки на маршруте, в которой этот элемент расположен и значения самого элемента.
Extends: Hashable
public static func == (lhs: CameraRouteAttribute, rhs: CameraRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [CameraRouteEntry]
Элементы, попадающие в отрезок [begin, end).
Parameters
public func findNearBackward(
point: RoutePoint
) -> CameraRouteEntry?
Найти ближайший элемент, позиция которого < = point.<br/>Сложность операции log2(N), где N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> CameraRouteEntry?
Найти ближайший элемент, позиция которого >= point.<br/>Сложность операции log2(N), где N = size.
Parameters
Properties
var size
Количество элементов.
var isEmpty
Элементы отсутствуют.
var first
Первый элемент.
var last
Последний элемент.
var entries
Все элементы.
CancelEvent
Cancellable
A 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.<br/>This documentation comment was inherited from .
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 feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Channel
public static func ==(lhs: Channel<Value>, rhs: Channel<Value>) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
Methods
public func sink(
receiveValue: @escaping (Value) -> Void
) -> Cancellable
Subscribe to a stream of values over time. The subscription never fails.
Returns
CancellableA cancellable instance. Deallocation of the result will tear down the subscription stream.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
func sinkOnMainThread(_ receiveValue: @escaping (Value) -> Void) -> Cancellable
Получение результата `Channel` на `main` очереди.
Returns
func sink(on queue: DispatchQueue, receiveValue: @escaping (Value) -> Void) -> Cancellable
Получение результата `Channel` на заданной очереди.
Parameters
CheckableGroupedItem
Единичный элемент из GroupCheckableItem.
Extends: Hashable
public static func == (lhs: CheckableGroupedItem, rhs: CheckableGroupedItem) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
CheckableItem
Базовое представление отмечаемого элемента из CheckableItemsGroup.
Extends: Hashable
public static func == (lhs: CheckableItem, rhs: CheckableItem) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var type
Получение типа отмечаемого элемента.
var filterType
Получение списка фильтров, описывающих текущее состояние виджета. Может быть использован при формировании поискового запроса.
CheckableItemsGroup
Виджет для представления группы отмечаемых элементов.
Extends: Widget
Properties
var items
Получение группы элементов виджета.
Checkbox
Виджет-чекбокс.
Extends: Widget
Properties
var filterType
Получение типа фильтра, который представляет виджет.
var checkedText
Получение текста подписи для “отмеченного” чекбокса.
var uncheckedText
Получение текста подписи для “неотмеченного” чекбокса.
var values
Получение списка значений, по которым происходит фильтрация. Обычно одно значение.
var isChecked
Получение состояния виджета.
Circle
Окружность.
Extends: SimpleMapObject
Methods
public func setPosition(
position: GeoPoint
) throws
Установка местоположения центра окружности.
Parameters
position
Properties
var position
Местоположение центра окружности.
var radius
Радиус окружности.
var color
Цвет заливки окружности.
var strokeWidth
Ширина линии границы окружности.
var strokeColor
Цвет границы окружности.
var dashedStrokeOptions
Получение параметров пунктирной обводки
ClusterObject
Кластер объектов.
Extends: MapObject
Properties
var position
Получение позиции кластера на карте.
var objectCount
Получение количества маркеров в кластере.
var objects
Получение списка маркеров в кластере.
var geometryObject
Получение геометрического объекта кластера.
CompassControl
CompassControlModel
Модель контрола компаса. Контрол состоит из кнопки компаса, при нажатии на которую камера карты меняет угол в направлении севера. Если камера карты смотрит на сервер, то контрол необходимо скрывать. Потокобезопасно.
Extends: Hashable
public static func == (lhs: CompassControlModel, rhs: CompassControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func onClicked()
Properties
CompassViewModel
ViewModel для контрола компаса
Extends: ObservableObject
Methods
public func onClicked()
ComplexGeometry
Составная геометрия, состоит из набора простых или составных геометрий.
Extends: Geometry
Properties
var elements
Container
Центральный объект для доступа к возможностям iOS Mobile SDK.
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
)
Конструктор контейнера.
Parameters
keySource
Настройки ключа для доступа к сервисам 2ГИС.
logOptions
Настройки логирования.
httpClientForRequest
Сетевой клиент для отправки HTTP-запросов.
httpOptions
Настройки HTTP-клиента (такие как кеширование).
locationProvider
Источник геопозиции. Если передать nil, то будет использоваться источник по умолчанию.
magneticHeadingProvider
Источник направления магнитной стрелки. Если передать nil, то будет использоваться источник по умолчанию.
personalDataCollectionOptions
Настройки сервиса сбора данных.
vendorConfig
Переопределения настроек для работы в автономном окружении.
Methods
public func makeMapFactory(
options: MapOptions
) throws -> IMapFactory
Parameters
options
Первоначальные свойства карты. Укажите `.default` для быстрого создания онлайн-карты, смотрящей на Москву, с фиксированным неточным PPI (не соответствующим текущему устройству).
Returns
public func makeRouteEditorFactory() throws -> IRouteEditorFactory
Создать фабрику редактора маршрутов.
Returns
public func makeRoadEventCardViewFactory(options: RoadEventCardViewOptions = .default) throws -> IRoadEventCardViewFactory
Создать фабрику карточки дорожного события.
Parameters
Properties
var context
Корневой непрозрачный контейнер объектов SDK. Используется в качестве аргумента к API SDK.
var markerViewFactory
Фабрика UIView маркеров для карты.
var styleFactory
Конструктор стандартных и пользовательских стилей.
var searchManagerFactory
Фабрика поисковиков по справочнику.
var sourceFactory
Фабрика источников данных карты.
var imageFactory
Фабрика изображений для объектов карты.
var localeManager
Менеджер региональных настроек приложения.
var locationService
Объект для работы с установленным при инициализации SDK источником геопозиции.
let httpOptions
Настройки HTTP-клиента.
var audioSettings
Объект для настройки звуков.
Context
Контекст - окружение, необходимое для работы SDK.
Extends: Hashable
public static func == (lhs: Context, rhs: Context) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
CoordinatesFollowController
Контроллер слежения за координатами позиции карты.
Extends: FollowController
public convenience init(
animationDuration: TimeInterval = 1,
valueThreshold: Meter = Meter(value: 0.10000000149011612)
)
Создание контроллера слежения за координатами позиции карты.
Parameters
animationDuration
TimeInterval
длительность изменения реальной позиции.
valueThreshold
неотрицательное пороговое значение учитываемого изменения реальной позиции.
CreateRoadEventControl
Блок для создания дорожных событий.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var intrinsicContentSize
CurrentLocationControl
Блок с функцией перелёта к текущему местоположению.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var intrinsicContentSize
CurrentLocationViewModel
ViewModel для контрола текущего местоположения.
Extends: ObservableObject
Methods
public func onClicked()
DgisMapObject
Объект карты 2GIS.<br/>информацию об объекте можно получить через справочник (directory)
Extends: MapObject
Properties
var id
Стабильный числовой идентификатор объекта.
DgisSource
Основной интерфейс источников данных 2ГИС.
Extends: Source
Methods
public static func createDgisSource(
context: Context,
workingMode: DgisSourceWorkingMode = DgisSourceWorkingMode.hybridOnlineFirst
) -> Source
Создание источника, получающего данные с серверов 2ГИС или использующего в работе предварительно загруженные данные.
Parameters
public func setHighlighted(
directoryObjectIds: [DgisObjectId],
highlighted: Bool
)
Установка или снятие выделения объектов.<br/>добавляет объекту атрибут “selected”, который можно использовать в стилях.
Parameters
directoryObjectIds
Идентификаторы изменяемых объектов.
highlighted
Установка или снятие выделения.
Properties
var highlightedObjectsChannel
StatefulChannel<[DgisObjectId]>
Получение списка идентификаторов выделенных объектов.
var highlightedObjects
Получение списка идентификаторов выделенных объектов.
DirectMapControlBeginEvent
Событие начала прямого управления картой. Сообщает карте, что необходимо обрабатывать события прямого управления картой. События прямого управления работают только от DirectMapControlBeginEvent до DirectMapControlEndEvent. После завершения последовательности событий прямого управления может запуститься кинематика. Кинематика использует время возникновения события, поэтому лучше использовать время, полученное от системы, а не заполнять значение при обработке. Пока кинематика работает только для перемещения карты, но не для вращения и масштабирования.
Extends: Event
public convenience init()
DirectMapControlEndEvent
Событие окончания прямого управления картой. Завершает прямое управление картой, начатое после получения события DirectMapControlBeginEvent. О событиях прямого управления картой описано в DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
timestamp: TimeInterval
)
Parameters
timestamp
TimeInterval
DirectMapRotationEvent
Событие прямого вращения карты. О событиях прямого управления картой описано в DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
bearingDelta: Bearing,
timestamp: TimeInterval,
rotationCenter: ScreenPoint? = nil
)
Parameters
bearingDelta
изменение угла поворота карты, в градусах. Положительные значения соответствуют направлению вращения против часовой стрелки
timestamp
TimeInterval
Время генерации системного события.
rotationCenter
Точка на экране, вокруг которой вращается карта. Если точка не задана, то вращение происходит относительно точки позиции карты.
Properties
var bearingDelta
Изменение угла поворота карты.
var rotationCenter
Точка на экране, вокруг которой вращается карта.
DirectMapScalingEvent
Событие прямого масштабирования карты. События прямого управления картой описаны в DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
zoomDelta: Float,
timestamp: TimeInterval,
scalingCenter: ScreenPoint? = nil
)
Parameters
zoomDelta
Float
Величина, на которую изменится текущее значение масштаба.
timestamp
TimeInterval
Время генерации системного события.
scalingCenter
Точка на экране, относительно которой масштабируется карта. Если точка не задана, то масштабирование происходит относительно точки позиции карты.
Properties
var zoomDelta
Float
Величина, на которую изменится текущее значение масштаба.
var scalingCenter
Точка на экране, относительно которой масштабируется карта.
DirectMapShiftEvent
Событие прямого сдвига карты. События прямого управления картой описаны в DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
screenShift: ScreenShift,
shiftedPoint: ScreenPoint,
timestamp: TimeInterval
)
Parameters
screenShift
Изменение экранной позиции карты относительно предыдущей, в пикселях.
shiftedPoint
Центральная точка, от которой производится смещение карты.
timestamp
TimeInterval
Время генерации системного события.
Properties
var screenShift
Изменение экранной позиции карты.
var shiftedPoint
Центральная точка, от которой производится смещение карты.
DirectMapTiltEvent
Событие прямого наклона камеры. События прямого управления картой описаны в DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
delta: Float,
timestamp: TimeInterval
)
Parameters
delta
Float
Изменение угла наклона в градусах.
timestamp
TimeInterval
Время генерации системного события.
Properties
var delta
Float
Изменение угла наклона в градусах.
DirectoryObject
Объект справочника.
Extends: Hashable
public static func == (lhs: DirectoryObject, rhs: DirectoryObject) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func formattedAddress(
type: FormattingType
) -> FormattedAddress?
Cтроковое представление адреса, отформатированное в соответствии с указанным требованием к длине.
Parameters
Properties
var types
Тип объекта. Может быть несколько, например, ТЦ Сан Сити - филиал организации и здание одновременно. Первый тип в этом списке - основной.
var title
Заголовок объекта.
var titleAddition
Дополнительная информация заголовка Пример: “(кв. 1-12)”
var subtitle
Подзаголовок объекта.<br/>при отсутствии может быть пустой строкой
var description
Описание объекта.
var id
Стабильный числовой идентификатор объекта.
var markerPosition
Точка объекта, где следует разместить маркер.
var address
Адрес объекта в виде набора компонент.
var attributes
Дополнительные атрибуты объекта.
var contextAttributes
Контекстные дополнительные атрибуты объекта.
var timeZoneOffset
Сдвиг локального времени объекта относительно UTC в секундах в текущий момент.
var openingHours
Время работы объекта.
var contactInfos
Контакты объекта.
var reviews
Отзывы.
var parkingInfo
Дополнительная информация о парковке.
var workStatus
Статус работы.
var levelId
Идентификатор этажа, на котором расположен объект.
var buildingLevels
Информация об этажных планах здания.
var entrances
Информация о входах.
var tradeLicense
Данные о лицензии организации.
var buildingInfo
Информация о здании.
var chargingStation
Аттрибуты для электрозаправки.
DoubleRouteAttribute
Контейнер, который описывает точечный атрибут маршрута. Каждый элемент хранится в виде точки на маршруте, в которой этот элемент расположен и значения самого элемента.
Extends: Hashable
public static func == (lhs: DoubleRouteAttribute, rhs: DoubleRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [DoubleRouteEntry]
Элементы, попадающие в отрезок [begin, end).
Parameters
public func findNearBackward(
point: RoutePoint
) -> DoubleRouteEntry?
Найти ближайший элемент, позиция которого < = point.<br/>Сложность операции log2(N), где N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> DoubleRouteEntry?
Найти ближайший элемент, позиция которого >= point.<br/>Сложность операции log2(N), где N = size.
Parameters
Properties
var size
Количество элементов.
var isEmpty
Элементы отсутствуют.
var first
Первый элемент.
var last
Последний элемент.
var entries
Все элементы.
DynamicRouteInfoSettings
Настройки получен ия динамических данных о маршруте.
Extends: Hashable
public static func == (lhs: DynamicRouteInfoSettings, rhs: DynamicRouteInfoSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var updatePeriod
Периодичность, с которой должны обновляться динамические данные о маршруте.
Event
Базовый класс для вс ех обрабатываемых событий.
Extends: Hashable
public static func == (lhs: Event, rhs: Event) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
ExceedSpeedLimitSettings
Настройки обнаружения превышения максимальной разрешённой скорости.
Extends: Hashable
public static func == (lhs: ExceedSpeedLimitSettings, rhs: ExceedSpeedLimitSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var exceedSpeedNotificationEnabled
Включение/выключение детектирования превышения максимальной разрешённой скорости.
var allowableSpeedExcess
Float
Разрешённое превышение скорости в м/с, по умолчанию равно 0.
File
Идентификатор файла.
Extends: Hashable
public static func == (lhs: File, rhs: File) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
FloatRouteLongAttribute
Контейнер, который хранит протяженный атрибут маршрута. Каждый элемент хранится в виде пары, состоящей из точки и значения элемента атрибута. Действие атрибута начинается с данной точки и заканчивается в следущей точке, начиная с которой начинается действие атрибута следующего элемента.
Extends: Hashable
public static func == (lhs: FloatRouteLongAttribute, rhs: FloatRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>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.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> FloatRouteLongEntry?
Элемент, в который попадает заданная точка.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [FloatRouteLongEntry]