语言

Location.Extras 属性

定义

返回与此位置关联的其他信息的可选捆绑包。 - 或 - 将与此修补程序关联的额外信息设置为给定的捆绑包。

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

属性值

其他信息,或者 null 如果没有。

特性

注解

属性 getter 文档:

返回与此位置关联的其他信息的可选捆绑包。 捆绑包中的键和值由位置提供程序确定。

下面列出了常见的键/值对。 不能保证这些键/值对将出现在任何位置。

<ul><li> 卫星 - 用于派生 GNSS 修复的卫星数。 此密钥在 API 34 中已弃用,因为可以通过更准确的方式(例如通过引用 GnssStatus#usedInFix)获取信息。 </ul>

Java文档android.location.Location.getExtras()。

属性 setter 文档:

将与此修补程序关联的额外信息设置为给定的捆绑包。

请注意,这会存储给定的额外内容的副本,因此调用此方法后对额外内容所做的任何更改都不会反映在位置捆绑包中。

Java文档android.location.Location.setExtras(android.os.Bundle)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于