EmbeddingAnimationParams
public final class EmbeddingAnimationParams
Parameters to be used for window transition animations for embedding activities.
| See also | |
|---|---|
EmbeddingAnimationParams.Builder |
|
animationParams |
|
EmbeddingAnimationBackground |
|
createColorBackground |
|
DEFAULT |
Summary
Nested types |
|---|
public final class EmbeddingAnimationParams.AnimationSpecThe animation to use when an activity transitions (e.g. open, close, or change). |
public final class EmbeddingAnimationParams.BuilderBuilder for creating an instance of |
Public methods |
|
|---|---|
boolean |
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 |
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 |
hashCode()Returns a hash code for this |
@NonNull String |
toString()A string representation of this |
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
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
public final @NonNull EmbeddingAnimationParams.AnimationSpec getChangeAnimation()
the animation spec to use for change transitions (when an activity resizes or moves).
getCloseAnimation
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
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. |