DataBinding

public interface DataBinding


DSL object for configuring databinding options.

Summary

Public methods

abstract boolean

Whether to add the default data binding adapters.

abstract Boolean

Whether to add the data binding KTX features.

abstract boolean

Whether to enable data binding.

abstract boolean

Whether to run data binding code generation for test projects.

abstract String

The version of data binding to use.

abstract boolean
abstract boolean
abstract void
setAddDefaultAdapters(boolean addDefaultAdapters)

Whether to add the default data binding adapters.

abstract void

Whether to add the data binding KTX features.

abstract void
setEnable(boolean enable)

Whether to enable data binding.

abstract void
setEnableForTests(boolean enableForTests)

Whether to run data binding code generation for test projects.

abstract void
setEnabled(boolean isEnabled)
abstract void
setEnabledForTests(boolean isEnabledForTests)
abstract void
setVersion(String version)

The version of data binding to use.

Public methods

getAddDefaultAdapters

abstract boolean getAddDefaultAdapters()

Whether to add the default data binding adapters.

getAddKtx

abstract Boolean getAddKtx()

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.

getEnable

abstract boolean getEnable()

Whether to enable data binding.

getEnableForTests

abstract boolean getEnableForTests()

Whether to run data binding code generation for test projects.

getVersion

abstract String getVersion()

The version of data binding to use.

isEnabled

abstract boolean isEnabled()

isEnabledForTests

abstract boolean isEnabledForTests()

setAddDefaultAdapters

abstract void setAddDefaultAdapters(boolean addDefaultAdapters)

Whether to add the default data binding adapters.

setAddKtx

abstract void setAddKtx(Boolean addKtx)

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.

setEnable

abstract void setEnable(boolean enable)

Whether to enable data binding.

setEnableForTests

abstract void setEnableForTests(boolean enableForTests)

Whether to run data binding code generation for test projects.

setEnabled

abstract void setEnabled(boolean isEnabled)

setEnabledForTests

abstract void setEnabledForTests(boolean isEnabledForTests)

setVersion

abstract void setVersion(String version)

The version of data binding to use.