Back to Exoplayer

NonNullApi (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/NonNullApi.html

latest1.0 KB
Original Source

Package com.google.android.exoplayer2.util

Annotation Type NonNullApi


@Nonnull
@TypeQualifierDefault([TYPE\_USE](https://developer.android.com/reference/java/lang/annotation/ElementType.html#TYPE_USE "class or interface in java.lang.annotation"))[@Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html "class or interface in java.lang.annotation")([CLASS](https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html?is-external=true#CLASS "class or interface in java.lang.annotation"))
public @interfaceNonNullApi

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Annotation to declare all type usages in the annotated instance as Nonnull, unless explicitly marked with a nullable annotation.