sdk-maps / com.tomtom.online.sdk.map / MapInfoExtension / getUserLocation

getUserLocation

@Nullable abstract fun getUserLocation(): Location?

If location is enabled for map, returns user's location (the same as indicated by GPS dot). If GPS position is not available, this method returns null. It is possible to observe location events using TomtomMap#addLocationUpdateListener(LocationUpdateListener).

Return
Location?: User current location.