DensitySplit

public interface DensitySplit extends Split


DSL object for configuring per-density splits options.

See APK Splits.

Summary

Public methods

abstract void

Adds a new compatible screen.

abstract @NonNull Set<@NonNull String>

A list of compatible screens.

abstract boolean

TODO: Document.

abstract void
setStrict(boolean isStrict)

TODO: Document.

Inherited methods

From com.android.build.api.dsl.Split
abstract void
exclude(@NonNull String excludes)

Excludes some values

abstract void
include(@NonNull String includes)

Includes some values

abstract boolean

Whether to split in this dimension.

abstract void

Resets the list of included split configuration.

abstract void
setEnable(boolean isEnable)

Whether to split in this dimension.

Public methods

compatibleScreens

abstract void compatibleScreens(@NonNull String sizes)

Adds a new compatible screen.

getCompatibleScreens

abstract @NonNull Set<@NonNull StringgetCompatibleScreens()

A list of compatible screens.

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

isStrict

abstract boolean isStrict()

TODO: Document.

setStrict

abstract void setStrict(boolean isStrict)

TODO: Document.