Class A3LLocationAvailability

  • All Implemented Interfaces:
    android.os.Parcelable

    public class A3LLocationAvailability
    extends java.lang.Object
    implements android.os.Parcelable
    This class provides replication of LocationAvailability .
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.ContentsFlags, android.os.Parcelable.Creator<T>, android.os.Parcelable.Stability, android.os.Parcelable.WriteFlags
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<A3LLocationAvailability> CREATOR
      Creator used for fetching data from the parcel received by an activity
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_STABILITY_LOCAL, PARCELABLE_STABILITY_VINTF, PARCELABLE_WRITE_RETURN_VALUE
    • Field Detail

      • CREATOR

        @NonNull
        public static final android.os.Parcelable.Creator<A3LLocationAvailability> CREATOR
        Creator used for fetching data from the parcel received by an activity
    • Constructor Detail

      • A3LLocationAvailability

        public A3LLocationAvailability​(boolean locationStatus)
    • Method Detail

      • hasLocationAvailability

        public static boolean hasLocationAvailability​(@Nullable
                                                      android.content.Intent intent)
        Returns true if an Intent contains a A3LLocationAvailability.

        Returns:
        true if the intent contains a A3LLocationAvailability, false otherwise.
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isLocationAvailable

        public boolean isLocationAvailable()
        Returns true if the device location is generally available.
        Returns:
        If device location is generally available.
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describeContents

        public int describeContents()
        Description copied from interface: android.os.Parcelable
        Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of Parcelable.writeToParcel(Parcel, int), the return value of this method must include the Parcelable.CONTENTS_FILE_DESCRIPTOR bit.
        Specified by:
        describeContents in interface android.os.Parcelable
        Returns:
        a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface android.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 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.