RoktSe
RoktSe

Reputation: 469

MapBox LocationEngineProvider

I am using the mapbox to show the location of the user on the map but when I want to implement "LocationEngineProvider" ide shows that it has some error and does not show any recommendations.

Code Image

Upvotes: 0

Views: 1033

Answers (1)

LppEdd
LppEdd

Reputation: 21104

Since Mapbox Android Core 1.0.0 the constructor has been marked as private.
Use the Factory method to obtain an instance.

final LocationEngine locationEngine = LocationEngineProvider.getBestLocationEngine(this);

Also, the setPriority method has been removed. See the relative GitHub commit.

Most probably (I'm not a user of this library) you need use LocationEngineRequest.Builder to replace this type of instance creation.

Upvotes: 2

Related Questions