# ConnectionType

# ConnectionType

*** ** * ** ***

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

<br />

```
@RequiresApi(value = 26) enum ConnectionType extends Enum
```

<br />

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object)                                                                                         |||
| ↳ | [kotlin.Enum](https://developer.android.com/reference/kotlin/Enum)                                                                                                ||
|   | ↳ | [com.google.ambient.crossdevice.connections.ConnectionType](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionType) |

*** ** * ** ***

The type of the connection.

## Summary

|                                                                                                                                                        ### Enum Values                                                                                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ACCEPTED](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionType#ACCEPTED) | The connection was opened remotely and accepted via[Participant.acceptConnection](https://developer.android.com/reference/com/google/ambient/crossdevice/Participant#acceptConnection(kotlin.String)). |
| [OPENED](https://developer.android.com/reference/com/google/ambient/crossdevice/connections/ConnectionType#OPENED)     | The connection was opened locally via[Participant.openConnection](https://developer.android.com/reference/com/google/ambient/crossdevice/Participant#openConnection(kotlin.String)).                   |

## Enum Values

### ACCEPTED

```
ConnectionType ConnectionType.ACCEPTED
```

The connection was opened remotely and accepted via[Participant.acceptConnection](https://developer.android.com/reference/com/google/ambient/crossdevice/Participant#acceptConnection(kotlin.String)).  

### OPENED

```
ConnectionType ConnectionType.OPENED
```

The connection was opened locally via[Participant.openConnection](https://developer.android.com/reference/com/google/ambient/crossdevice/Participant#openConnection(kotlin.String)).