Stay organized with collections
Save and categorize content based on your preferences.
DynamicFeatureBuildFeatures
interface DynamicFeatureBuildFeatures : BuildFeatures
A list of build features that can be disabled or enabled in an Android Dynamic Feature project.
Summary
Public properties |
Boolean? |
Flag to enable Data Binding.
|
Boolean? |
Flag to enable Machine Learning Model Binding.
|
Public properties
dataBinding
val dataBinding: Boolean?
Flag to enable Data Binding.
Setting the value to null
resets to the default value. Default value is false
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.databinding=true
in the gradle.properties
file at the root project of your build.
More information about this feature at: TBD
mlModelBinding
val mlModelBinding: Boolean?
Flag to enable Machine Learning Model Binding.
Setting the value to null
resets to the default value. Default value is false
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.mlmodelbinding=true
in the gradle.properties
file at the root project of your build.
More information about this feature at: TBD
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DynamicFeatureBuildFeatures\n===========================\n\n\n```\ninterface DynamicFeatureBuildFeatures : BuildFeatures\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA list of build features that can be disabled or enabled in an Android Dynamic Feature project.\n\nSummary\n-------\n\n| ### Public properties ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [dataBinding](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/DynamicFeatureBuildFeatures#dataBinding()) Flag to enable Data Binding. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [mlModelBinding](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/DynamicFeatureBuildFeatures#mlModelBinding()) Flag to enable Machine Learning Model Binding. |\n\n| ### Inherited functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| From class [ExtensionAware](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html) |--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [ExtensionContainer](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionContainer.html) | [getExtensions](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html#getExtensions--)`()` | |\n\nPublic properties\n-----------------\n\n### dataBinding\n\n```\nval dataBinding: Boolean?\n```\n\nFlag to enable Data Binding.\n\nSetting the value to `null` resets to the default value. Default value is `false`.\n\nYou can override the default for this for all projects in your build by adding the line `android.defaults.buildfeatures.databinding=true` in the `gradle.properties` file at the root project of your build.\n\nMore information about this feature at: TBD \n\n### mlModelBinding\n\n```\nval mlModelBinding: Boolean?\n```\n\nFlag to enable Machine Learning Model Binding.\n\nSetting the value to `null` resets to the default value. Default value is `false`.\n\nYou can override the default for this for all projects in your build by adding the line `android.defaults.buildfeatures.mlmodelbinding=true` in the `gradle.properties` file at the root project of your build.\n\nMore information about this feature at: TBD"]]