次の方法で共有


AltitudeConverter.AddMslAltitudeToLocation(Context, Location) Method

Definition

Adds a Mean Sea Level altitude to the location.

[Android.Runtime.Register("addMslAltitudeToLocation", "(Landroid/content/Context;Landroid/location/Location;)V", "", ApiSince=34)]
public void AddMslAltitudeToLocation (Android.Content.Context context, Android.Locations.Location location);
[<Android.Runtime.Register("addMslAltitudeToLocation", "(Landroid/content/Context;Landroid/location/Location;)V", "", ApiSince=34)>]
member this.AddMslAltitudeToLocation : Android.Content.Context * Android.Locations.Location -> unit

Parameters

context
Context
location
Location
Attributes

Remarks

Adds a Mean Sea Level altitude to the location. In addition, adds a Mean Sea Level altitude accuracy if the location has a finite and non-negative vertical accuracy; otherwise, does not add a corresponding accuracy.

Must be called off the main thread as data may be loaded from raw assets.

Java documentation for android.location.altitude.AltitudeConverter.addMslAltitudeToLocation(android.content.Context, android.location.Location).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to