DataBinding

Added in 4.2.0

interface DataBinding


DSL object for configuring databinding options.

Summary

Public properties

Boolean

Whether to add the default data binding adapters.

Boolean?

Whether to add the data binding KTX features.

Boolean

Whether to enable data binding.

Boolean

Whether to run data binding code generation for test projects.

Boolean

This property is deprecated. deprecated, use enable

Boolean

This property is deprecated. deprecated, use enableForTests

String?

The version of data binding to use.

Public properties

addDefaultAdapters

Added in 4.2.0
var addDefaultAdaptersBoolean

Whether to add the default data binding adapters.

addKtx

Added in 7.0.0
var addKtxBoolean?

Whether to add the data binding KTX features. A null value means that the user hasn't specified any value in the DSL. The default value can be tweaked globally using the android.defaults.databinding.addKtx gradle property.

enable

Added in 7.3.0
var enableBoolean

Whether to enable data binding.

enableForTests

Added in 7.3.0
var enableForTestsBoolean

Whether to run data binding code generation for test projects.

isEnabled

Added in 4.2.0
Deprecated in 4.2.0
var isEnabledBoolean

isEnabledForTests

Added in 4.2.0
Deprecated in 7.3.0
var isEnabledForTestsBoolean

version

Added in 4.2.0
var versionString?

The version of data binding to use.