TrafficCollector | iOS SDK | 2GIS Documentation
iOS SDK

TrafficCollector

Interface for managing the traffic information collection service.
This interface is thread-safe.

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

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

public convenience init(
    context: Context
)

The function of creating a traffic information collection service. The service analyzes the state of traffic on the road on which the user is moving and sends the results of the analysis in an anonymized form to the server.

Parameters
context
Context

Context - the environment required to run the SDK.

Methods
Properties

Function for determining the allow/deny status of sending traffic information to the server.