# DensitySplit

# DensitySplit

<br />

```
interface DensitySplit : Split
```

<br />

*** ** * ** ***

DSL object for configuring per-density splits options.

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

## Summary

|                                                                                                                                                                                                                        ### Public functions                                                                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [compatibleScreens](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/DensitySplit#compatibleScreens(kotlin.Array))`(vararg sizes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Adds a new compatible screen. |

|                                                                                                                                                                          ### Public properties                                                                                                                                                                          ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.2/com/android/build/api/dsl/DensitySplit#compatibleScreens()) A list of compatible screens. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                          | [isStrict](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/DensitySplit#isStrict()) TODO: Document.                                 |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[Split](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/Split) |------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [exclude](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/Split#exclude(kotlin.Array))`(vararg excludes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Excludes some values | | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [include](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/Split#include(kotlin.Array))`(vararg includes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Includes some values | | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [reset](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/Split#reset())`()` Resets the list of included split configuration.                                                                                         | |

## Public functions

### compatibleScreens

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

Adds a new compatible screen.

## Public properties

### compatibleScreens

```
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

```
val isStrict: Boolean
```

TODO: Document.