Aracılığıyla paylaş


Location.Bearing Property

Definition

Returns the bearing at the time of this location in degrees. -or- Set the bearing at the time of this location, in degrees.

public virtual float Bearing { [Android.Runtime.Register("getBearing", "()F", "GetGetBearingHandler")] get; [Android.Runtime.Register("setBearing", "(F)V", "GetSetBearing_FHandler")] set; }
[<get: Android.Runtime.Register("getBearing", "()F", "GetGetBearingHandler")>]
[<set: Android.Runtime.Register("setBearing", "(F)V", "GetSetBearing_FHandler")>]
member this.Bearing : single with get, set

Property Value

bearing at the time of this location

Attributes

Remarks

Property getter documentation:

Returns the bearing at the time of this location in degrees. Bearing is the horizontal direction of travel of this device and is unrelated to the device orientation. The bearing is guaranteed to be in the range [0, 360).

This is only valid if #hasBearing() is true.

Java documentation for android.location.Location.getBearing().

Property setter documentation:

Set the bearing at the time of this location, in degrees. The given bearing will be converted into the range [0, 360).

<p class="note">Note: passing in extremely high or low floating point values to this function may produce strange results due to the intricacies of floating point math.

Java documentation for android.location.Location.setBearing(float).

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