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 |
|
Inherited constants |
|
|---|---|
Public methods |
|
|---|---|
| Int | |
| Boolean | |
| Icon? |
getIcon() |
| String? |
getKey() |
| CharSequence? |
getName() |
| String? |
getUri() |
| Int |
hashCode() |
| Boolean |
isBot() |
| Boolean | |
| Person.Builder! |
Creates and returns a new |
| 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. |
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 |