Stay organized with collections
Save and categorize content based on your preferences.
SessionId
@RequiresApi(value = 26) public final class SessionId
An identifier that uniquely describes an individual Session.
Summary
Public constructors
Public methods
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\n[Kotlin](/reference/kotlin/com/google/ambient/crossdevice/sessions/SessionId \"View this page in Kotlin\") \\|Java\n\n\n```\n@RequiresApi(value = 26) public final class SessionId\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn identifier that uniquely describes an individual Session.\n\nSummary\n-------\n\n| ### Nested types ||\n|-----------------------------------------------------------------------------------------------|---|\n| [SessionId.Companion](/reference/com/google/ambient/crossdevice/sessions/SessionId.Companion) | |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SessionId](/reference/com/google/ambient/crossdevice/sessions/SessionId#SessionId(kotlin.String))`(@`[NonNull](/reference/androidx/annotation/NonNull)` `[String](/reference/java/lang/String)` id)` |\n\n| ### Public methods ||\n|----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `boolean` | [equals](/reference/com/google/ambient/crossdevice/sessions/SessionId#equals(kotlin.Any))`(`[Object](/reference/java/lang/Object)` other)` |\n| `int` | [hashCode](/reference/com/google/ambient/crossdevice/sessions/SessionId#hashCode())`()` |\n| `@`[NonNull](/reference/androidx/annotation/NonNull)` `[String](/reference/java/lang/String) | [toString](/reference/com/google/ambient/crossdevice/sessions/SessionId#toString())`()` |\n\nPublic constructors\n-------------------\n\n### SessionId\n\n```\npublic final SessionId(@NonNull String id)\n```\n\nPublic methods\n--------------\n\n### equals\n\n```\npublic boolean equals(Object other)\n``` \n\n### hashCode\n\n```\npublic int hashCode()\n``` \n\n### toString\n\n```\npublic @NonNull String toString()\n```"]]