setMslAltitudeAccuracyMeters

open fun setMslAltitudeAccuracyMeters(@NonNull location: @NonNull Location, @FloatRange(from = 0.0) mslAltitudeAccuracyMeters: Float)(source)

Sets the Mean Sea Level altitude accuracy of the location in meters.

NOTE: On API levels below 34, the concept of Mean Sea Level altitude accuracy does not exist. In order to allow for backwards compatibility and testing however, this method will attempt to set a float extra with the key EXTRA_MSL_ALTITUDE_ACCURACY to include Mean Sea Level altitude accuracy. Be aware that this will overwrite any prior extra value under the same key.

See also