# SessionId

# SessionId

*** ** * ** ***

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


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

<br />

*** ** * ** ***

An identifier that uniquely describes an individual Session.

## Summary

|                                                                                                                                                                                                                                    ### Public companion functions                                                                                                                                                                                                                                     ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[DoNotInline](https://developer.android.com/reference/kotlin/androidx/annotation/DoNotInline)` `[SessionId](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId)`?` | [getSessionIdFromIntent](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId.Companion#getSessionIdFromIntent(android.content.Intent))`(intent: `[Intent](https://developer.android.com/reference/kotlin/android/content/Intent)`)` |

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

|                                                                                                                                         ### Public functions                                                                                                                                          ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://developer.android.com/reference/kotlin/kotlin/Boolean) | [equals](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#equals(kotlin.Any))`(other: `[Any](https://developer.android.com/reference/kotlin/kotlin/Any)`?)` |
| `open `[Int](https://developer.android.com/reference/kotlin/kotlin/Int)                  | [hashCode](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#hashCode())`()`                                                                                 |
| `open `[String](https://developer.android.com/reference/kotlin/kotlin/String)            | [toString](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#toString())`()`                                                                                 |

## Public companion functions

### getSessionIdFromIntent

```
@DoNotInline
fun getSessionIdFromIntent(intent: Intent): SessionId?
```

## Public constructors

### SessionId

```
SessionId(id: String)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```