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
valueOf(value: String)

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.ERRORExperimental.Level

Specifies that an error should be reported on incorrect usages of this experimental API.

WARNING

val Experimental.Level.WARNINGExperimental.Level

Specifies that a warning should be reported on incorrect usages of this experimental API.

Public functions

valueOf

Added in 1.0.0
fun valueOf(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

values

Added in 1.0.0
fun values(): 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 entriesEnumEntries<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.