Skip to content

androidx.annotation:annotation-experimental

Official Description: Java annotation for use on unstable Android API surfaces. When used in conjunction with the Experimental annotation lint checks, this annotation provides functional parity with Kotlin's Experimental annotation.

CommonsWare's Notes

This artifact provides two annotations:

  • @Experimental, to mark an API has being Experimental

  • @UseExperimental, to be used on the end consumer of an @Experimental API

If you also add annotation-experimental-lint, then you will get Lint warnings if you have code that calls an @Experimental API and that code itself is not annotated with either @UseExperimental or @Experimental.

Documentation

Versions