public class AuthenticatorDescription extends Object implements Parcelable
Parcelable
value type that contains information about an account authenticator.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
int |
accountPreferencesId
A resource id for a hierarchy of PreferenceScreen to be added to the settings page for the
account.
|
static Parcelable.Creator<AuthenticatorDescription> |
CREATOR
Used to create the object from a parcel.
|
boolean |
customTokens
Authenticator handles its own token caching and permission screen
|
int |
iconId
A resource id of a icon for the authenticator
|
int |
labelId
A resource id of a label for the authenticator that is suitable for displaying
|
String |
packageName
The package name that can be used to lookup the resources from above.
|
int |
smallIconId
A resource id of a smaller icon for the authenticator
|
String |
type
The string that uniquely identifies an authenticator
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
AuthenticatorDescription(String type,
String packageName,
int labelId,
int iconId,
int smallIconId,
int prefId) |
AuthenticatorDescription(String type,
String packageName,
int labelId,
int iconId,
int smallIconId,
int prefId,
boolean customTokens)
A constructor for a full AuthenticatorDescription
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
boolean |
equals(Object o)
Compares the type only, suitable for key comparisons.
|
int |
hashCode()
Returns the hashcode of the type only.
|
static AuthenticatorDescription |
newKey(String type)
A factory method for creating an AuthenticatorDescription that can be used as a key
to identify the authenticator by its type.
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public final String type
public final int labelId
public final int iconId
public final int smallIconId
public final int accountPreferencesId
AbstractAccountAuthenticator
for an example.public final String packageName
public final boolean customTokens
public static final Parcelable.Creator<AuthenticatorDescription> CREATOR
public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, int smallIconId, int prefId, boolean customTokens)
public static AuthenticatorDescription newKey(String type)
public int describeContents()
Parcelable
describeContents
in interface Parcelable
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
public boolean equals(Object o)
equals
in class Object
o
- the object to compare this instance with.true
if the specified object is equal to this Object
; false
otherwise.Object.hashCode()
public String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
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
.