Google is committed to advancing racial equity for Black communities. See how.

DensitySplit

@Incubating interface DensitySplit : SplitOptions
com.android.build.api.dsl.DensitySplit

DSL object for configuring per-density splits options.

See APK Splits.

Summary

Public methods

abstract Unit
compatibleScreens(vararg sizes: String)

Adds a new compatible screen.

Inherited functions

Properties

abstract MutableSet<String>

A list of compatible screens.

abstract Boolean

TODO: Document.

Inherited properties

Public methods

compatibleScreens

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.