# DensitySplit

# DensitySplit

```
interface DensitySplit : Split
```

|------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.dsl.DensitySplit](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/DensitySplit#) |

DSL object for configuring per-density splits options.

See[APK Splits](https://developer.android.com/studio/build/configure-apk-splits.html).

## Summary

|                                                                                                                                                                                  ### Public methods                                                                                                                                                                                   ||
|--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [compatibleScreens](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/DensitySplit#compatibleScreens(kotlin.String))`(`vararg` `sizes:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds a new compatible screen. |

| ### Inherited functions ||
|---|---|
| From class[Split](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split) |------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [exclude](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split#exclude(kotlin.String))`(`vararg` `excludes:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br /> Excludes some values <br />                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [include](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split#include(kotlin.String))`(`vararg` `includes:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br /> Includes some values <br />                                                         | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [reset](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split#reset())`()` <br /> Resets the list of included split configuration. Use this before calling include, in order to manually configure the list of configuration to split on, rather than excluding from the default list. <br /> | ||

|                                                                                                                                                                                              ### Properties                                                                                                                                                                                               ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\> | [compatibleScreens](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/DensitySplit#compatibleScreens:kotlin.collections.MutableSet) A list of compatible screens. |
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                        | [isStrict](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/DensitySplit#isStrict:kotlin.Boolean) TODO: Document.                                                |

| ### Inherited properties ||
|---|---|
| From class[Split](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split) |------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnable](https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/Split#isEnable:kotlin.Boolean) <br /> Whether to split in this dimension. <br /> | ||

## Public methods

### compatibleScreens

```
@Incubating abstract fun compatibleScreens(vararg sizes: String): Unit
```

Adds a new compatible screen.

## Properties

### compatibleScreens

```
abstract val compatibleScreens: MutableSet<String>
```

A list of compatible screens.

This will inject a matching`<compatible-screens><screen ...>`node in the manifest. This is optional.  

### isStrict

```
abstract var isStrict: Boolean
```

TODO: Document.