Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

UseExperimental

public abstract @interface UseExperimental
implements Annotation

androidx.annotation.experimental.UseExperimental


Allows use of an experimental API denoted by the given markers in the annotated file, declaration, or expression. If a declaration is annotated with UseExperimental, its usages are not required to opt-in to that experimental API.

Summary

Public methods

Class<?> markerClass()

Defines the experimental API whose usage this annotation allows.

Inherited methods

Public methods

markerClass

public Class<?> markerClass ()

Defines the experimental API whose usage this annotation allows.

Returns
Class<?>