# Participant

Artifact: [androidx.core:core-telecom](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/telecom/extensions/Participant.kt+class:androidx.core.telecom.extensions.Participant) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***


```
public final class Participant
```

<br />

*** ** * ** ***

A representation of aspects of a participant in a Call.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#Participant(kotlin.String,kotlin.CharSequence)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html name)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#getId()()` A unique identifier shared with remote surfaces that represents this participant. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#getName()()` The name of the Participant, which remote surfaces will display to users. |
| `int` | `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/telecom/extensions/Participant#toString()()` |

## Public constructors

### Participant

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

```
public Participant(@NonNull String id, @NonNull CharSequence name)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id` | A unique identifier shared with remote surfaces that represents this participant. This value MUST be unique and stable for the life of the call, meaning that this ID should not change or be reused for the lifetime of the call. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html name` | The name of the Participant, which remote surfaces will display to users. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getId

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

```
public final @NonNull String getId()
```

A unique identifier shared with remote surfaces that represents this participant. This value MUST be unique and stable for the life of the call, meaning that this ID should not change or be reused for the lifetime of the call.

### getName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

```
public final @NonNull CharSequence getName()
```

The name of the Participant, which remote surfaces will display to users.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```