Search code examples
androidmapboxdeprecatedmapbox-android

setOnMapClickListener deprecated method of Mapbox


I am using the Mapbox API and its setOnMapClickListener is deprecated. I haven't found any other way to use the onMapClick method; is there another way?


Solution

  • setOnMapClickListener was deprecated in release 5.3.0 in favor of addOnMapClickListener.

    Source: API Reference