BuildConfigField

Added in 4.2.0

class BuildConfigField<T : Serializable> : Serializable


Field definition for the generated BuildConfig class.

The field is generated as: = ;

Summary

Public constructors

<T : Serializable> BuildConfigField(type: String, value: T, comment: String?)

Public properties

String?

Optional field comment that will be added to the generated source file or null if no comment is necessary.

String

Value to be written as BuildConfig field type.

T

Value of the generated field.

Public constructors

BuildConfigField

<T : Serializable> BuildConfigField(type: String, value: T, comment: String?)

Public properties

comment

Added in 4.2.0
val commentString?

Optional field comment that will be added to the generated source file or null if no comment is necessary.

type

Added in 4.2.0
val typeString

Value to be written as BuildConfig field type.

value

Added in 4.2.0
val value: T

Value of the generated field. If type is String, then value should include quotes.