AI-generated Key Takeaways
- 
          LocationAvailability provides information about the availability of location data, but this information is a best guess and not guaranteed to be accurate. 
- 
          You can extract LocationAvailability information from an Intent using extractLocationAvailabilityand check if an Intent contains this information usinghasLocationAvailability.
- 
          The isLocationAvailablemethod indicates whether the device's location is generally available.
Information on the availability of location data. The information contained within this class is generally a best guess, and is not guaranteed to be accurate. Clients should avoid treating this information as a certainty.
Inherited Constant Summary
Field Summary
| public static final Creator<LocationAvailability> | CREATOR | 
Public Method Summary
| boolean | |
| static LocationAvailability | |
| static boolean | |
| int | 
                  
                  hashCode()
                 | 
| boolean | 
                  
                  isLocationAvailable()
                   
                    Returns true if the device location is generally available.
                   | 
| String | 
                  
                  toString()
                 | 
| void | 
                  
                  writeToParcel(Parcel parcel, int
                  flags)
                 | 
Inherited Method Summary
Fields
public static final Creator<LocationAvailability> CREATOR
Public Methods
public boolean equals (Object o)
public static LocationAvailability extractLocationAvailability (Intent intent)
Extracts the LocationAvailability
            from an Intent.
Returns
- a LocationAvailabilityornull.
public static boolean hasLocationAvailability (Intent intent)
Returns true if an Intent contains a LocationAvailability.
Returns
- true if the intent contains a LocationAvailability, false otherwise.
public int hashCode ()
public boolean isLocationAvailable ()
Returns true if the device location is generally available.