DensitySplit

interface DensitySplit : Split

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

Unit exclude(vararg excludes: String)

Excludes some values

Unit include(vararg includes: String)

Includes some values

Unit reset()

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.

Properties

abstract MutableSet<String>

A list of compatible screens.

abstract Boolean

TODO: Document.

Inherited properties

Boolean isEnable

Whether to split in this dimension.

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.