# SessionId

# SessionId

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId "View this page in Kotlin")\|Java

<br />

```
@RequiresApi(value = 26) public final class SessionId
```

<br />

*** ** * ** ***

An identifier that uniquely describes an individual Session.

## Summary

|                                                       ### Nested types                                                        ||
|----------------------------------------------------------------------------------------------------------------------------|---|
| [SessionId.Companion](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionId.Companion) |   |

|                                                                                                                                     ### Public constructors                                                                                                                                     ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SessionId](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionId#SessionId(kotlin.String))`(@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull)` `[String](https://developer.android.com/reference/java/lang/String)` id)` |

|                                                                                                                                                                      ### Public methods                                                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean`                                                                                                                                              | [equals](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionId#equals(kotlin.Any))`(`[Object](https://developer.android.com/reference/java/lang/Object)` other)` |
| `int`                                                                                                                                                  | [hashCode](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionId#hashCode())`()`                                                                                 |
| `@`[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull)` `[String](https://developer.android.com/reference/java/lang/String) | [toString](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/SessionId#toString())`()`                                                                                 |

## Public constructors

### SessionId

```
public final SessionId(@NonNull String id)
```

## Public methods

### equals

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

### hashCode

```
public int hashCode()
```  

### toString

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