Google is committed to advancing racial equity for Black communities. See how.
Added in API level 28

Person

class Person : Parcelable
kotlin.Any
   ↳ android.app.Person

Provides an immutable reference to an entity that appears repeatedly on different surfaces of the platform. For example, this could represent the sender of a message.

Summary

Nested classes

Builder for the immutable Person class.

Inherited constants

Public methods

Int

Boolean
equals(other: Any?)

Icon?

String?

CharSequence?

String?

Int

Boolean

Boolean

Person.Builder!

Creates and returns a new Builder initialized with this Person's data.

Unit
writeToParcel(dest: Parcel!, flags: Int)

Flatten this object in to a Parcel.

Properties

static Parcelable.Creator<Person!>

Public methods

describeContents

Added in API level 28
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

Added in API level 28
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getIcon

Added in API level 28
fun getIcon(): Icon?
Return
Icon? the icon provided for this person or null if no icon was provided.

getKey

Added in API level 28
fun getKey(): String?
Return
String? the key provided for this person or null if no key was provided.

getName

Added in API level 28
fun getName(): CharSequence?
Return
CharSequence? the name provided for this person or null if no name was provided.

getUri

Added in API level 28
fun getUri(): String?
Return
String? the uri provided for this person or null if no Uri was provided.

hashCode

Added in API level 28
fun hashCode(): Int
Return
Int a hash code value for this object.

isBot

Added in API level 28
fun isBot(): Boolean
Return
Boolean whether this Person is a machine.

isImportant

Added in API level 28
fun isImportant(): Boolean
Return
Boolean whether this Person is important.

toBuilder

Added in API level 28
fun toBuilder(): Person.Builder!

Creates and returns a new Builder initialized with this Person's data.

writeToParcel

Added in API level 28
fun writeToParcel(
    dest: Parcel!,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel!: The Parcel in which the object should be written.
flags Int: Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 28
static val CREATOR: Parcelable.Creator<Person!>