TerritoryManager | iOS SDK | 2GIS Documentation

TerritoryManager

Interface to interact with a list of territories: Subscribe to the changes of information about territories; Search for territories by coordinates and geometry; Subscribe to the changes of information about the general progress of installation/updating of territories; Suspend and resume the territories installation/updating.

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

Returns a Boolean value indicating whether two values are equal.

Methods
Properties
StatefulChannel<[Territory]>

Channel with a list of all known territories. Updated when information about at least one of the territories changes, or when the composition of the list changes. The content of the channel is a subset of the common list of packages obtained from IPackageManager::packages. To avoid descriptions of packages being out of sync, you should not use data received simultaneously from multiple channels that contain subsets of the common package list.

Channel with a list of all known territories. Updated when information about at least one of the territories changes, or when the composition of the list changes. The content of the channel is a subset of the common list of packages obtained from IPackageManager::packages. To avoid descriptions of packages being out of sync, you should not use data received simultaneously from multiple channels that contain subsets of the common package list.