sdk-common / com.tomtom.online.sdk.location

Package com.tomtom.online.sdk.location

Types

AbstractLocationSource

abstract class AbstractLocationSource : LocationSource, LocationListener

Base class for all LocationSources. It contains the listeners list and propagate onLocationChange events to added listeners.

BasicLocationSource

open class BasicLocationSource : AbstractLocationSource

The basic implementation of the LocationSource which relies on the default Android mechanism to obtain location ( via LocationManager ).

BuildConfig

class BuildConfig

FusedLocationSource

open class FusedLocationSource : LocationCallback, LocationSource, ConnectionCallbacks, OnConnectionFailedListener, Contextable

Default location source implementation. It is based on FusedLocationService provided by Google. When no custom location source provided, map is using it to get the user location. It uses {LocationUpdateListener} to notify about new location updates.

LocationRequest

data class LocationRequest

Defines the parameters that will be used by the BasicLocationSource to obtain location.

LocationRequestsFactory

open class LocationRequestsFactory

Factory to create various location request, that differs with location update time and accuracy to save the user battery. In some cases, the user may not need too frequent updates.

Locations

open class Locations

Constant with fixed locations

LocationSource

interface LocationSource

Interface that provides location data, typically to a TomtomMap object. A TomtomMap has a built-in location provider, however, it can be replaced with custom one that implements this interface.

LocationUpdateListener

interface LocationUpdateListener

Callback interface to notify about location changes.