EmbeddingAnimationBackground


abstract class EmbeddingAnimationBackground

Known direct subclasses
EmbeddingAnimationBackground.ColorBackground

An {@link EmbeddingAnimationBackground} to specify of using a developer-defined color as the animation background.


Background to be used for window transition animations for embedding activities if the animation requires a background.

Summary

Nested types

An {@link EmbeddingAnimationBackground} to specify of using a developer-defined color as the animation background.

Public companion functions

EmbeddingAnimationBackground.ColorBackground
createColorBackground(
    color: @IntRange(from = -16777216, to = -1) @ColorInt Int
)

Creates a ColorBackground to represent the given color.

Public companion properties

EmbeddingAnimationBackground

The special EmbeddingAnimationBackground to represent the default value, which means to use the current theme window background color.

Public companion functions

createColorBackground

Added in 1.4.0-alpha05
fun createColorBackground(
    color: @IntRange(from = -16777216, to = -1) @ColorInt Int
): EmbeddingAnimationBackground.ColorBackground

Creates a ColorBackground to represent the given color.

Only opaque color is supported.

Parameters
color: @IntRange(from = -16777216, to = -1) @ColorInt Int

ColorInt of an opaque color.

Throws
kotlin.IllegalArgumentException

if the color is not opaque.

See also
DEFAULT

for the default value, which means to use the current theme window background color.

Public companion properties

DEFAULT

val DEFAULTEmbeddingAnimationBackground

The special EmbeddingAnimationBackground to represent the default value, which means to use the current theme window background color.