Package com.amazon.A3L.location
Class A3LCurrentLocationRequest
- java.lang.Object
-
- com.amazon.A3L.location.A3LCurrentLocationRequest
-
- All Implemented Interfaces:
android.os.Parcelable
public class A3LCurrentLocationRequest extends java.lang.Object implements android.os.Parcelable
This class provides replication of CurrentLocationRequest .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
A3LCurrentLocationRequest.Builder
A builder forA3LCurrentLocationRequest
.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<A3LCurrentLocationRequest>
CREATOR
Creator used for fetching data from the parcel received by an activity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
Needed for Parcellingboolean
equals(java.lang.Object object)
Overridden method to verify if the current A3LCurrentLocationRequest Object and the one requested have same data.long
getDurationMillis()
The duration in milliseconds of the location request used to derive the current location if no historical location satisfies the current location request.int
getGranularity()
TheA3LGranularity
of locations returned for this request.long
getMaxUpdateAgeMillis()
The maximum age of any location returned for this request.int
getPriority()
TheA3LPriority
of the location request used to derive the current location if no historical location satisfies the current location request.int
hashCode()
java.lang.String
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
Flatten this object in to a Parcel.
-
-
-
Field Detail
-
CREATOR
@NonNull public static final android.os.Parcelable.Creator<A3LCurrentLocationRequest> CREATOR
Creator used for fetching data from the parcel received by an activity
-
-
Method Detail
-
getMaxUpdateAgeMillis
public long getMaxUpdateAgeMillis()
The maximum age of any location returned for this request. A value of 0 indicates that only freshly derived locations will be returned, and no historical locations will ever be returned. A value Long.MAX_VALUE represents an effectively unbounded maximum age.- Returns:
- long: Maximum age of any location returned.
-
getGranularity
public int getGranularity()
TheA3LGranularity
of locations returned for this request. This controls whether fine or coarse locations may be returned.- Returns:
- int: Granularity of the location.
-
getPriority
public int getPriority()
TheA3LPriority
of the location request used to derive the current location if no historical location satisfies the current location request.- Returns:
- int: Priority of the location request.
-
getDurationMillis
public long getDurationMillis()
The duration in milliseconds of the location request used to derive the current location if no historical location satisfies the current location request. If this duration expires with no location, the current location request will return a null location. The current location request may fail and return a null location after a shorter duration (ie, the given duration may be capped internally), but never a longer duration.- Returns:
- long: The duration in milliseconds of the location request.
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
describeContents
public int describeContents()
Needed for Parcelling- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Returns:
- int: 0
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Parameters:
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written. May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE
.
-
equals
public boolean equals(java.lang.Object object)
Overridden method to verify if the current A3LCurrentLocationRequest Object and the one requested have same data.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- :A3LCurrentLocationRequest
- Returns:
- boolean: true if both objects have same information
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-