isMock

open fun isMock(@NonNull location: @NonNull Location): Boolean

Returns true if this location is marked as a mock location. If this location comes from the Android framework, this indicates that the location was provided by a test location provider, and thus may not be related to the actual location of the device.

See also

android.location.LocationManager