# PropagationUnsupportedToken

Artifact: [androidx.tracing:tracing](https://developer.android.com/jetpack/androidx/releases/tracing) [View Source](https://cs.android.com/search?q=file:androidx/tracing/PropagationUnsupportedToken.kt+class:androidx.tracing.PropagationUnsupportedToken) Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

*** ** * ** ***

Android/JVM
- android

  ```
  object PropagationUnsupportedToken : PropagationToken, AutoCloseable
  ```

*** ** * ** ***

The `https://developer.android.com/reference/kotlin/androidx/tracing/PropagationToken` instance that should be returned when context propagation is unsupported by the underlying `https://developer.android.com/reference/kotlin/androidx/tracing/Tracer`.

## Summary

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/tracing/PropagationUnsupportedToken#close()()` | android |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html?` | `@https://developer.android.com/reference/kotlin/androidx/tracing/DelicateTracingApi https://developer.android.com/reference/kotlin/androidx/tracing/PropagationUnsupportedToken#contextElementOrNull()()` | android |

## Public functions

### close

android Added in [2.0.5](https://developer.android.com/jetpack/androidx/releases/tracing#2.0.5)

```
open fun close(): Unit
```

### contextElementOrNull

android

```
@DelicateTracingApi
open fun contextElementOrNull(): CoroutineContext.Element?
```

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html?` | a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines/-coroutine-context/-element/index.html` that needs to be installed in the `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/index.html` prior to dispatching the suspending block of code being traced; if the token is being used in a suspending context. |