| CLASS info |
| public static class LocationSettingsStatesextends AbstractSafeParcelable implements IMessageEntity |
| 当前定位相关设置的状态。 |
| Return type | Method name | Description |
| Creator<LocationSettingsStates> | CREATOR | LocationSettingsStates构建器 |
| Type | Name | Desc |
| boolean | isBlePresent | BLE是否存在于设备上。 |
| boolean | isBleUsable | BLE是否已启用且可供应用程序使用。 |
| boolean | isGpsPresent | GPS设备是否存在于设备上。 |
| boolean | isGpsUsable | 是否启用GPS提供程序并且应用程序可以使用它。 |
| boolean | isLocationPresent | 设备上是否存在位置。 |
| boolean | isLocationUsable | 位置是否已启用且可供应用程序使用。 |
| boolean | isNetworkLocationPresent | 网络位置提供程序是否存在于设备上。 |
| boolean | isNetworkLocationUsable | 网络位置提供程序是否已由应用程序启用和使用。 |
| Return type | Method name |
| static LocationSettingsStates | fromIntent (Intent intent) |
| Method |
| public static LocationSettingsStates fromIntent (Intent intent) |
| 在设置位置状态的弹框消失后,可调用此方法,从重写的onActivityResult()返回的Intent中,获取到LocationSettingsStates对象,检查位置设置状态。 |
Parameters
| Parameter name | Parameter desc |
| intent | 从重写的onActivityResult()返回的Intent。 |
Return
| type | desc |
| LocationSettingsStates | 获取位置设置状态的类 |