EmbeddingAnimationParams


class EmbeddingAnimationParams


Parameters to be used for window transition animations for embedding activities.

Summary

Nested types

The animation to use when an activity transitions (e.g. open, close, or change).

Builder for creating an instance of EmbeddingAnimationParams.

Public functions

open operator Boolean
equals(other: Any?)

Determines whether this object has the same animation parameters as the compared object.

open Int

Returns a hash code for this EmbeddingAnimationParams object.

open String

A string representation of this EmbeddingAnimationParams object.

Public properties

EmbeddingAnimationBackground

the animation background to use during the animation of the split involving this EmbeddingAnimationParams object if the animation requires a background.

EmbeddingAnimationParams.AnimationSpec

the animation spec to use for change transitions (when an activity resizes or moves).

EmbeddingAnimationParams.AnimationSpec

the animation spec to use for close transitions (when finishing/exiting an activity or when an activity moves to back).

EmbeddingAnimationParams.AnimationSpec

the animation spec to use for open transitions (when starting/entering an activity or when an activity moves to front).

Public functions

equals

open operator fun equals(other: Any?): Boolean

Determines whether this object has the same animation parameters as the compared object.

Parameters
other: Any?

the object to compare to this object.

Returns
Boolean

true if the objects have the same animation parameters, false otherwise.

hashCode

open fun hashCode(): Int

Returns a hash code for this EmbeddingAnimationParams object.

Returns
Int

the hash code for this object.

toString

open fun toString(): String

A string representation of this EmbeddingAnimationParams object.

Returns
String

the string representation of the object.

Public properties

animationBackground

Added in 1.4.0
val animationBackgroundEmbeddingAnimationBackground

the animation background to use during the animation of the split involving this EmbeddingAnimationParams object if the animation requires a background. The default is to use the current theme window background color.

changeAnimation

Added in 1.5.0-alpha02
val changeAnimationEmbeddingAnimationParams.AnimationSpec

the animation spec to use for change transitions (when an activity resizes or moves).

closeAnimation

Added in 1.5.0-alpha02
val closeAnimationEmbeddingAnimationParams.AnimationSpec

the animation spec to use for close transitions (when finishing/exiting an activity or when an activity moves to back).

openAnimation

Added in 1.5.0-alpha02
val openAnimationEmbeddingAnimationParams.AnimationSpec

the animation spec to use for open transitions (when starting/entering an activity or when an activity moves to front).