EmbeddingAnimationParams


public final 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 methods

boolean
equals(Object other)

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

final @NonNull EmbeddingAnimationBackground

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

final @NonNull EmbeddingAnimationParams.AnimationSpec

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

final @NonNull EmbeddingAnimationParams.AnimationSpec

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

final @NonNull EmbeddingAnimationParams.AnimationSpec

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

int

Returns a hash code for this EmbeddingAnimationParams object.

@NonNull String

A string representation of this EmbeddingAnimationParams object.

Public methods

equals

public boolean equals(Object other)

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

Parameters
Object other

the object to compare to this object.

Returns
boolean

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

getAnimationBackground

Added in 1.4.0
public final @NonNull EmbeddingAnimationBackground getAnimationBackground()

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.

getChangeAnimation

Added in 1.5.0-alpha02
public final @NonNull EmbeddingAnimationParams.AnimationSpec getChangeAnimation()

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

getCloseAnimation

Added in 1.5.0-alpha02
public final @NonNull EmbeddingAnimationParams.AnimationSpec getCloseAnimation()

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

getOpenAnimation

Added in 1.5.0-alpha02
public final @NonNull EmbeddingAnimationParams.AnimationSpec getOpenAnimation()

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

hashCode

public int hashCode()

Returns a hash code for this EmbeddingAnimationParams object.

Returns
int

the hash code for this object.

toString

public @NonNull String toString()

A string representation of this EmbeddingAnimationParams object.

Returns
@NonNull String

the string representation of the object.