RequiresOptIn.Level
public enum RequiresOptIn.Level extends Enum
Severity of the diagnostic that should be reported on usages of opt-in API which did not explicitly accept the opt-in aspect of that API either by:
- Propagating the opt-in aspect by annotating the usage with the marker annotation, thus becoming part of the marked opt-in API surface or
- Suppressing propagation of the opt-in aspect by annotating the usage with [OptIn] and
specifying the marker annotation    SummaryEnum ValuesERRORSpecifies that an error should be reported on incorrect usages of this opt-in API. WARNINGSpecifies that a warning should be reported on incorrect usages of this opt-in API. Public methodsfinal @NonNull EnumEntries<@NonNull RequiresOptIn.Level>Severity of the diagnostic that should be reported on usages of opt-in API which did not explicitly accept the opt-in aspect of that API either by: final @NonNull RequiresOptIn.LevelReturns the enum constant of this type with the specified name. final @NonNull RequiresOptIn.Level[]values()Returns an array containing the constants of this enum type, in the order they're declared. Enum ValuesERRORRequiresOptIn.Level RequiresOptIn.Level.ERROR Specifies that an error should be reported on incorrect usages of this opt-in API. WARNINGRequiresOptIn.Level RequiresOptIn.Level.WARNING Specifies that a warning should be reported on incorrect usages of this opt-in API. Public methodsgetEntriespublic final @NonNull EnumEntries<@NonNull RequiresOptIn.Level> getEntries() Severity of the diagnostic that should be reported on usages of opt-in API which did not explicitly accept the opt-in aspect of that API either by: - Propagating the opt-in aspect by annotating the usage with the marker annotation, thus becoming part of the marked opt-in API surface or
- Suppressing propagation of the opt-in aspect by annotating the usage with [OptIn] and specifying the marker annotation
 valueOfAdded in 1.1.0public final @NonNull RequiresOptIn.Level valueOf(@NonNull String value) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) Throws kotlin.IllegalArgumentExceptionif this enum type has no constant with the specified name 
