hasProvider
open fun hasProvider(@NonNull locationManager: @NonNull LocationManager, @NonNull provider: @NonNull String): Boolean(source)
Returns true if the given location provider exists on this device, irrespective of whether it is currently enabled or not. If called on Android Q and below for the FUSED_PROVIDER, this method may return incorrect results if the client does not hold at least the ACCESS_COARSE_LOCATION permission.