Stay organized with collections
Save and categorize content based on your preferences.
ConnectionType
@RequiresApi(value = 26) enum ConnectionType extends Enum
The type of the connection.
Summary
Enum Values
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,["# ConnectionType\n==============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/com/google/ambient/crossdevice/connections/ConnectionType \"View this page in Kotlin\") \\|Java\n\n\n```\n@RequiresApi(value = 26) enum ConnectionType extends Enum\n```\n\n\u003cbr /\u003e\n\n|---|---|-----------------------------------------------------------------------------------------------------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) |||\n| ↳ | [kotlin.Enum](/reference/kotlin/Enum) ||\n| | ↳ | [com.google.ambient.crossdevice.connections.ConnectionType](/reference/com/google/ambient/crossdevice/connections/ConnectionType) |\n\n*** ** * ** ***\n\nThe type of the connection.\n\nSummary\n-------\n\n| ### Enum Values ||\n|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ACCEPTED](/reference/com/google/ambient/crossdevice/connections/ConnectionType#ACCEPTED) | The connection was opened remotely and accepted via [Participant.acceptConnection](/reference/com/google/ambient/crossdevice/Participant#acceptConnection(kotlin.String)). |\n| [OPENED](/reference/com/google/ambient/crossdevice/connections/ConnectionType#OPENED) | The connection was opened locally via [Participant.openConnection](/reference/com/google/ambient/crossdevice/Participant#openConnection(kotlin.String)). |\n\nEnum Values\n-----------\n\n### ACCEPTED\n\n```\nConnectionType ConnectionType.ACCEPTED\n```\n\nThe connection was opened remotely and accepted via [Participant.acceptConnection](/reference/com/google/ambient/crossdevice/Participant#acceptConnection(kotlin.String)). \n\n### OPENED\n\n```\nConnectionType ConnectionType.OPENED\n```\n\nThe connection was opened locally via [Participant.openConnection](/reference/com/google/ambient/crossdevice/Participant#openConnection(kotlin.String))."]]