AuthenticatorDescription
open class AuthenticatorDescription : Parcelable
kotlin.Any | |
↳ | android.accounts.AuthenticatorDescription |
A Parcelable
value type that contains information about an account authenticator.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
AuthenticatorDescription(type: String!, packageName: String!, labelId: Int, iconId: Int, smallIconId: Int, prefId: Int, customTokens: Boolean) A constructor for a full AuthenticatorDescription |
|
Public methods | |
---|---|
open Int | |
open Boolean |
Compares the type only, suitable for key comparisons. |
open Int |
hashCode() Returns the hashcode of the type only. |
open static AuthenticatorDescription! |
A factory method for creating an AuthenticatorDescription that can be used as a key to identify the authenticator by its type. |
open String |
toString() |
open Unit |
writeToParcel(dest: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<AuthenticatorDescription!> |
Used to create the object from a parcel. |
Int |
A resource id for a hierarchy of PreferenceScreen to be added to the settings page for the account. |
Boolean |
Authenticator handles its own token caching and permission screen |
Int |
A resource id of a icon for the authenticator |
Int |
A resource id of a label for the authenticator that is suitable for displaying |
String! |
The package name that can be used to lookup the resources from above. |
Int |
A resource id of a smaller icon for the authenticator |
String! |
The string that uniquely identifies an authenticator |
Public constructors
AuthenticatorDescription
AuthenticatorDescription(
type: String!,
packageName: String!,
labelId: Int,
iconId: Int,
smallIconId: Int,
prefId: Int,
customTokens: Boolean)
A constructor for a full AuthenticatorDescription
AuthenticatorDescription
AuthenticatorDescription(
type: String!,
packageName: String!,
labelId: Int,
iconId: Int,
smallIconId: Int,
prefId: Int)
Public methods
describeContents
open fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
open fun equals(other: Any?): Boolean
Compares the type only, suitable for key comparisons.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
o |
This value may be null . |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
hashCode
open fun hashCode(): Int
Returns the hashcode of the type only.
Return | |
---|---|
Int |
a hash code value for this object. |
newKey
open static fun newKey(type: String!): AuthenticatorDescription!
A factory method for creating an AuthenticatorDescription that can be used as a key to identify the authenticator by its type.
toString
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Parameters | |
---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<AuthenticatorDescription!>
Used to create the object from a parcel.
accountPreferencesId
val accountPreferencesId: Int
A resource id for a hierarchy of PreferenceScreen to be added to the settings page for the account. See AbstractAccountAuthenticator
for an example.
customTokens
val customTokens: Boolean
Authenticator handles its own token caching and permission screen
labelId
val labelId: Int
A resource id of a label for the authenticator that is suitable for displaying
packageName
val packageName: String!
The package name that can be used to lookup the resources from above.
smallIconId
val smallIconId: Int
A resource id of a smaller icon for the authenticator