Sdílet prostřednictvím


Location.Extras Property

Definition

Returns an optional bundle of additional information associated with this location. -or- Sets the extra information associated with this fix to the given Bundle.

public virtual Android.OS.Bundle? Extras { [Android.Runtime.Register("getExtras", "()Landroid/os/Bundle;", "GetGetExtrasHandler")] get; [Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "GetSetExtras_Landroid_os_Bundle_Handler")] set; }
[<get: Android.Runtime.Register("getExtras", "()Landroid/os/Bundle;", "GetGetExtrasHandler")>]
[<set: Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "GetSetExtras_Landroid_os_Bundle_Handler")>]
member this.Extras : Android.OS.Bundle with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns an optional bundle of additional information associated with this location. The keys and values within the bundle are determined by the location provider.

Common key/value pairs are listed below. There is no guarantee that these key/value pairs will be present for any location.

<ul> <li> satellites - the number of satellites used to derive a GNSS fix. This key was deprecated in API 34 because the information can be obtained through more accurate means, such as by referencing GnssStatus#usedInFix. </ul>

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

Property setter documentation:

Sets the extra information associated with this fix to the given Bundle.

Note this stores a copy of the given extras, so any changes to extras after calling this method won't be reflected in the location bundle.

Java documentation for android.location.Location.setExtras(android.os.Bundle).

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