Experimental.Level
enum Experimental.Level : Enum
Severity of the diagnostic that should be reported on usages of experimental API which did not explicitly accept the experimental aspect of that API either by using UseExperimental or by being annotated with the corresponding marker annotation.
Summary
Enum Values |
|
|---|---|
ERROR |
This enum value is deprecated. This annotation has been replaced by `@RequiresOptIn` |
WARNING |
This enum value is deprecated. This annotation has been replaced by `@RequiresOptIn` |
Public functions |
|
|---|---|
Experimental.Level |
This function is deprecated. This annotation has been replaced by `@RequiresOptIn` |
Array<Experimental.Level> |
This function is deprecated. This annotation has been replaced by `@RequiresOptIn` |
Public properties |
|
|---|---|
EnumEntries<Experimental.Level> |
This property is deprecated. This annotation has been replaced by `@RequiresOptIn` |
Enum Values
ERROR
val Experimental.Level.ERROR: Experimental.Level
Specifies that an error should be reported on incorrect usages of this experimental API.
WARNING
val Experimental.Level.WARNING: Experimental.Level
Specifies that a warning should be reported on incorrect usages of this experimental API.
Public functions
funvalueOf(value: String): Experimental.Level
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.IllegalArgumentException |
if this enum type has no constant with the specified name |
funvalues(): Array<Experimental.Level>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
Public properties
entries
val entries: EnumEntries<Experimental.Level>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.