Class Scope

  • All Implemented Interfaces:
    android.os.Parcelable

    public class Scope
    extends java.lang.Object
    implements android.os.Parcelable
    Describes an OAuth 2.0 scope to request. This has security implications for the user, and requesting additional scopes will result in authorization dialogs.
    • 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<Scope> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_STABILITY_LOCAL, PARCELABLE_STABILITY_VINTF, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      Scope​(java.lang.String scopeUri)
      Creates a new scope with the given URI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()
      Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
      boolean equals​(java.lang.Object scope)  
      int hashCode()  
      java.lang.String toString()
      Returns scope uri for the Scope
      void writeToParcel​(android.os.Parcel parcel, int i)
      Flatten this object in to a Parcel.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface android.os.Parcelable

        getStability
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Scope> CREATOR
    • Constructor Detail

      • Scope

        public Scope​(@NonNull
                     java.lang.String scopeUri)
        Creates a new scope with the given URI.
    • Method Detail

      • 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 parcel,
                                  int i)
        Description copied from interface: android.os.Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Parameters:
        parcel - The Parcel in which the object should be written.
        i - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
      • equals

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

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

        @NonNull
        public java.lang.String toString()
        Returns scope uri for the Scope
        Overrides:
        toString in class java.lang.Object
        Returns:
        String: Scope Uri