Stay organized with collections
Save and categorize content based on your preferences.
SessionId
@RequiresApi(value = 26) class SessionId
An identifier that uniquely describes an individual Session.
Summary
Public companion functions
Public constructors
Public functions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SessionId\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/ambient/crossdevice/sessions/SessionId \"View this page in Java\")\n\n\n```\n@RequiresApi(value = 26) class SessionId\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn identifier that uniquely describes an individual Session.\n\nSummary\n-------\n\n| ### Public companion functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[DoNotInline](/reference/kotlin/androidx/annotation/DoNotInline)` `[SessionId](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId)`?` | [getSessionIdFromIntent](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId.Companion#getSessionIdFromIntent(android.content.Intent))`(intent: `[Intent](/reference/kotlin/android/content/Intent)`)` |\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SessionId](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#SessionId(kotlin.String))`(id: `[String](/reference/kotlin/kotlin/String)`)` |\n\n| ### Public functions ||\n|-------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open operator `[Boolean](/reference/kotlin/kotlin/Boolean) | [equals](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#equals(kotlin.Any))`(other: `[Any](/reference/kotlin/kotlin/Any)`?)` |\n| `open `[Int](/reference/kotlin/kotlin/Int) | [hashCode](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#hashCode())`()` |\n| `open `[String](/reference/kotlin/kotlin/String) | [toString](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId#toString())`()` |\n\nPublic companion functions\n--------------------------\n\n### getSessionIdFromIntent\n\n```\n@DoNotInline\nfun getSessionIdFromIntent(intent: Intent): SessionId?\n```\n\nPublic constructors\n-------------------\n\n### SessionId\n\n```\nSessionId(id: String)\n```\n\nPublic functions\n----------------\n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n``` \n\n### toString\n\n```\nopen fun toString(): String\n```"]]