InspectableProperty.EnumEntry

Added in 1.1.0
Deprecated in 1.3.0

@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASSAnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.SOURCE)
public annotation InspectableProperty.EnumEntry


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

Summary

Public constructors

EnumEntry(@NonNull String name, int value)

This method is deprecated. Replaced by the androidx.resourceinpsection package.

Public methods

final @NonNull String

This method is deprecated. Replaced by the androidx.resourceinpsection package.

final int

This method is deprecated. Replaced by the androidx.resourceinpsection package.

Public constructors

EnumEntry

Added in 1.10.0
Deprecated in 1.10.0
public EnumEntry(@NonNull String name, int value)

Public methods

getName

public final @NonNull String getName()

The string name of this enumeration value.

Returns
@NonNull String

A string name

getValue

public final int getValue()

The integer value of this enumeration value.

Returns
int

An integer value