| CLASS info |
| public class LocationAvailability implements Parcelable, IMessageEntity |
| Device location availability. |
| Return type | Method name | Description |
| Creator<LocationAvailability> | CREATOR | LocationAvailability builder. |
| Return type | Method name |
| static LocationAvailability | extractLocationAvailability(Intent intent) |
| static boolean | hasLocationAvailability(Intent intent) |
| boolean | isLocationAvailable() |
| Method |
| public static LocationAvailability extractLocationAvailability(Intent intent) |
| This API is used to obtain the LocationAvailability instance. |
Parameters
| Parameter name | Parameter desc |
| intent | Intent transferred to the server when the requestLocationUpdates API is called. |
Return
| type | desc |
| LocationAvailability | Return null if the Intent does not include the data. |
Parameters
| Parameter name | Parameter desc |
| intent | Intent transferred to the server when the requestLocationUpdates API is called. |
Return
| type | desc |
| boolean | If the Intent contains LocationAvailability, the value is true. Otherwise, the value is false. |
Return
| type | desc |
| boolean | If the value of locationStatus is smaller than 1000, this parameter returns true. Otherwise, this parameter returns false. |