# Experimental

Artifact: [androidx.annotation:annotation-experimental](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/experimental/Experimental.kt+class:androidx.annotation.experimental.Experimental) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0)

*** ** * ** ***


```
@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS])
public annotation Experimental
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This annotation is deprecated.**   
> This annotation has been replaced by \`@RequiresOptIn\`, use this instead:
>
> ```
> RequiresOptIn
> ```

Denotes that the annotated element is a marker of an experimental API.

Any declaration annotated with this marker is considered part of an unstable API surface and its call sites should accept the experimental aspect of it either by using `https://developer.android.com/reference/androidx/annotation/experimental/UseExperimental`, or by being annotated with that marker themselves, effectively causing further propagation of that experimental aspect.

## Summary

| ### Nested types |
|---|
| `public enum https://developer.android.com/reference/androidx/annotation/experimental/Experimental.Level extends https://developer.android.com/reference/java/lang/Enum.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/annotation/experimental/Experimental.Level>` **This enum is deprecated.** This annotation has been replaced by \`@RequiresOptIn\` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/annotation/experimental/Experimental.Level` | `[getLevel](https://developer.android.com/reference/androidx/annotation/experimental/Experimental#getLevel())()` **This method is deprecated.** This annotation has been replaced by \`@RequiresOptIn\` |

## Public methods

### getLevel

```
public final @NonNull Experimental.Level [getLevel](https://developer.android.com/reference/androidx/annotation/experimental/Experimental#getLevel())()
```

> [!CAUTION]
> **This method is deprecated.**   
> This annotation has been replaced by \`@RequiresOptIn\`, use this instead:
>
> ```
> RequiresOptIn
> ```

Defines the reporting level for incorrect usages of this experimental API.