The Android Developer Challenge is back! Submit your idea before December 2.

Dimension

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.ANNOTATION_CLASS]) class Dimension
androidx.annotation.Dimension

Denotes that an integer parameter, field or method return value is expected to represent a dimension.

Summary

Constants

static Int

static Int

static Int

Public constructors

<init>(unit: Int)

Denotes that an integer parameter, field or method return value is expected to represent a dimension.

Properties

Int

Constants

DP

static val DP: Int
Value: 0

PX

static val PX: Int
Value: 1

SP

static val SP: Int
Value: 2

Public constructors

<init>

Dimension(unit: Int)

Denotes that an integer parameter, field or method return value is expected to represent a dimension.

Properties

unit

val unit: Int