isLocationAcceptable

open fun isLocationAcceptable(@NonNull newLocation: Location, @Nullable oldLocation: Location): Boolean

Determines whether one Location is better than the given location For Android 12 determining if the new location is acceptable compared to the old one is unuseful when the permission is accepted only for approximation and the return will be true.

Return

boolean true if the new location is acceptable compared to the old one false otherwise

Parameters

newLocation

The new Location that will be evaluated

oldLocation

Old given location