Person

public class 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 types

Person.Builder

Builder for the immutable Person class.

Public constructors

Public methods

static @NonNull Person

Extracts and returns the Person written to the bundle.

@Nullable IconCompat

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

@Nullable String

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

@Nullable CharSequence

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

@Nullable String

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

boolean

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

boolean

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

@NonNull Person.Builder

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

@NonNull Bundle

Writes and returns a new Bundle that represents this Person.

Public constructors

Person

public final Person()

Public methods

fromBundle

public static @NonNull Person fromBundle(@NonNull Bundle bundle)

Extracts and returns the Person written to the bundle. A bundle can be created from a Person using toBundle.

getIcon

public @Nullable IconCompat getIcon()

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

getKey

public @Nullable String getKey()

Returns