Register now for Android Dev Summit 2019!

EnumEntry

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class EnumEntry
androidx.annotation.InspectableProperty.EnumEntry

One entry in an enumeration packed into a primitive {int}.

Summary

Public constructors

<init>(value: Int, name: String)

One entry in an enumeration packed into a primitive {int}.

Properties

String

The string name of this enumeration value.

Int

The integer value of this enumeration value.

Public constructors

<init>

EnumEntry(value: Int, name: String)

One entry in an enumeration packed into a primitive {int}.

Properties

name

val name: String

The string name of this enumeration value.

Return
String: A string name

value

val value: Int

The integer value of this enumeration value.

Return
Int: An integer value