Person

public class Person
extends Object

java.lang.Object
   ↳ androidx.core.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

class Person.Builder

Builder for the immutable Person class. 

Public methods

static Person fromBundle(Bundle bundle)

Extracts and returns the Person written to the bundle.

IconCompat getIcon()

Returns the icon for this Person or null if no icon was provided.

String getKey()

Returns the key for this Person or null if no key was provided.

CharSequence getName()

Returns the name for this Person or null if no name was provided.

String getUri()

Returns the raw URI for this Person or null if no URI was provided.

boolean isBot()

Returns whether or not this Person is a machine rather than a human.

boolean isImportant()

Returns whether or not this Person is important to the user of this device with regards to how frequently they interact.

Person.Builder toBuilder()

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

Bundle toBundle()

Writes and returns a new Bundle that represents this Person.

Inherited methods