目录

CLASS info
public static class LocationSettingsStatesextends AbstractSafeParcelable implements IMessageEntity
当前定位相关设置的状态。

Constant Summary

Return typeMethod nameDescription
Creator<LocationSettingsStates>CREATORLocationSettingsStates构建器

Member Variable Summary

TypeNameDesc
booleanisBlePresentBLE是否存在于设备上。
booleanisBleUsableBLE是否已启用且可供应用程序使用。
booleanisGpsPresentGPS设备是否存在于设备上。
booleanisGpsUsable是否启用GPS提供程序并且应用程序可以使用它。
booleanisLocationPresent设备上是否存在位置。
booleanisLocationUsable位置是否已启用且可供应用程序使用。
booleanisNetworkLocationPresent网络位置提供程序是否存在于设备上。
booleanisNetworkLocationUsable网络位置提供程序是否已由应用程序启用和使用。

Public Method Summary

Return typeMethod name
static LocationSettingsStatesfromIntent (Intent intent)

Public Methods

Method
public static LocationSettingsStates fromIntent (Intent intent)
在设置位置状态的弹框消失后,可调用此方法,从重写的onActivityResult()返回的Intent中,获取到LocationSettingsStates对象,检查位置设置状态。

Parameters

Parameter nameParameter desc
intent从重写的onActivityResult()返回的Intent。

Return

typedesc
LocationSettingsStates获取位置设置状态的类