open class BasicCurrentLocationView : AppCompatImageView, CurrentLocationView, OnClickListener
Button that is used to center the map on the user's current location. When clicked, the map is centered on the current location that is obtained from a TomTom map using the TomtomMap#getCenterOfMap() method. When navigation mode is on, the behaviour is different. When the 'follow the chevron' option is turned on, the route overview is displayed. When the 'follow the chevron' option is turned off, this option is changed to on.
BasicCurrentLocationView(context: Context!)
Constructor that uses context to initialize view, click actions, and set the image resource. BasicCurrentLocationView(context: Context!, attrs: AttributeSet!)
Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes. BasicCurrentLocationView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)
Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes and a reference to default style resource. |
open fun getView(): ImageView |
|
open fun hide(): Unit |
|
open fun onClick(view: View!): Unit |
|
open fun onRestoreInstanceState(state: Parcelable!): Unit |
|
open fun onSaveInstanceState(): Parcelable? |
|
open fun setCurrentLocationViewAdapter(currentLocationViewAdapter: CurrentLocationViewAdapter!): Unit |
|
open fun setLocationStatusListener(listener: CurrentLocationView.LocationStatusListener!): Unit |
|
open fun setMargins(left: Int, top: Int, right: Int, bottom: Int): Unit |
|
open fun setOnMapComponentClickCallback(callback: ClickableMapComponent.MapComponentClickCallback!): Unit |
|
open fun show(): Unit |
|
open fun updateViewWithLocationInPixels(currentZoomLevel: Double, focalPixels: PointF!, currentLocationPixels: PointF!): Unit |
|
open fun updateViewWithMapLocation(userLocation: Location!, focalLatitude: Double, focalLongitude: Double): Unit |