interface
BufferedChannel
val value
CameraMoveController
Class that allows you to control the position of the camera for the needs of animation.
The class must be thread-safe.
fun position(time: Duration): CameraPosition
Position of the viewing area at a particular point in time. The controller must be prepared for the animation times to be passed in any order, not necessarily non-decreasing.
time
Time from the start of the animation in milliseconds.
Position of the viewing area at the specified point in time.
fun animationTime(): Duration
Animation duration in milliseconds.
Animation duration in milliseconds.
Channel
@CheckResult
fun connect(executor: Executor, callback: ChannelCallback<T>): AutoCloseable
@CheckResult
fun connect(callback: ChannelCallback<T>): AutoCloseable
CustomFollowController
Interface that can be implemented on the platform to create custom controller for parameter tracking. To add a controller to a camera, you need to implement this interface and create a FollowController object passing an object that implements this interface as an argument.
fun availableValues(): EnumSet<FollowValue>
Set of value types that this controller can manage.
fun requestValues(values: EnumSet<FollowValue>): Unit
Tells the controller which values it provides are in use. This frees up the resources associated with calculating unused values. The method can be called multiple times with different values, in which case the last one is considered relevant.
fun setNewValuesNotifier(notifier: NewValuesNotifier?): Unit
Installs a notifier that notifies about new values. The notifier must be stored in the implemented controller
fun bearing(): Bearing?
Bearing. Method is called only after calling request_values with appropriate parameters.
Future
fun onComplete(
executor: Executor,
resultCallback: FutureResultCallback<T>,
errorCallback: FutureErrorCallback
): Unit
fun onComplete(resultCallback: FutureResultCallback<T>, errorCallback: FutureErrorCallback): Unit
fun onResult(executor: Executor, callback: FutureResultCallback<T>): Unit
fun onResult(callback: FutureResultCallback<T>): Unit
fun onError(executor: Executor, callback: FutureErrorCallback): Unit
suspend fun await(): T
HttpClient
fun sendRequest(request: HttpRequest, callback: HttpResponseCallback): Unit
LocationChangeListener
Interface for reporting changes in geolocation and its availability.
fun onLocationChanged(locations: Array<Location>): Unit
LocationService
Interface providing the last known geolocation.
LocationSource
fun activate(listener: LocationChangeListener): Unit
fun deactivate(): Unit
LogSink
Logging receiver.
fun write(message: LogMessage): Unit
Logging. The method can be called on an arbitrary thread.
MagneticHeadingSource
fun activate(listener: MagneticChangeListener): Unit
fun deactivate(): Unit
MapEventSender
Interface that allows you to send an input event to the map.
MapGestureRecognitionEngine
Interface for gesture recognition.
fun resetRecognitionState(): Unit
fun setMapEventSender(mapEventSender: MapEventSender): Unit
MutableChannel
MutableStatefulChannel
var value
RoadEventActionButtonModel
Action button model for a traffic event.
SafeLocationListener
SearchViewCallback
Interface for setting callback functions for SearchLayout.
fun directoryObjectChosen(obj: DirectoryObject): Unit
Method will be called when the user selects a result from the search results. The selected DirectoryObject will be returned.
fun searchCompletedSuccessfully(items: List<DirectoryObject>): Unit
Method will be called when the search is successful. A list of DirectoryObject results obtained from the search results will be returned.
fun searchCompletedWithException(message: String): Unit
Method will be called if an exception occurs during the search. The message from the exception will be returned.
fun searchAborted(): Unit
Method will be called if the search string has been cleared of input.
fun searchClosed(): Unit
Method will be called if the user closed the search in the standard way: with the close button next to the search bar.
SearchViewConfigurator
Interface for setting up search in SearchLayout.
fun setSuggestorType(suggestorType: SuggestorType): Unit
Sets the type of the suggester. Default: SuggestorType.GENERAL
fun setSortingType(sortingType: SortingType): Unit
Sets the type of the search results. Default: SortingType.BY_RELEVANCE
fun setAllowedSearchResultTypes(allowedSearchResultTypes: List<ObjectType>): Unit
Sets the object types of ObjectType allowed in the search query result. Default: all except ObjectType.ROUTE
fun setAllowedSuggestedTypes(allowedSuggestedTypes: List<SuggestedType>): Unit
Sets the object types of SuggestedType allowed in the suggests. Default: all except SuggestedType.ROUTE.
fun setPageSize(size: Int): Unit
Sets limit on the number of hints in suggest and of search results. Valid values range from 1 to 50. Default: 10.
fun setSpatialRestrictions(spatialRestriction: List?<GeoPoint>): Unit
Set the search area limit in the form of a polygon. The first and the last points of the polygon do not have to match Default: missing.
fun setAreaOfInterest(rect: GeoRect?): Unit
Sets a rectangular area of interest in geographic coordinates. Default: missing.
fun setSearchType(type: SearchType): Unit
Sets the SearchType type of the search engine. Possible options and default values depend on the SDK delivery type. See SearchType and SearchOptions for details.
fun setLocationProvider(provider: LocationService?): Unit
Sets a geolocation provider to determine the distance to an object in the search results. Not set by default.
SimpleClusterRenderer
Class for customizing cluster appearance in IMapObjectManager.
fun renderCluster(cluster: SimpleClusterObject): SimpleClusterOptions
Gets a marker for the cluster.
StatefulChannel
val value
StyleZoomToTiltRelation
Object for describing the dependence of the camera tilt angle on the style zoom level.
TouchEventsObserver
fun onDragEnd(): Unit