EmbeddingAnimationParams.Builder


public final class EmbeddingAnimationParams.Builder


Builder for creating an instance of EmbeddingAnimationParams.

Summary

Public constructors

Public methods

final @NonNull EmbeddingAnimationParams

Builds an EmbeddingAnimationParams instance with the attributes specified by the builder's setters.

final @NonNull EmbeddingAnimationParams.Builder

Sets the animation background.

Public constructors

Builder

Added in 1.4.0-beta01
public Builder()

Public methods

build

Added in 1.4.0-beta01
public final @NonNull EmbeddingAnimationParams build()

Builds an EmbeddingAnimationParams instance with the attributes specified by the builder's setters.

Returns
@NonNull EmbeddingAnimationParams

the new EmbeddingAnimationParams instance.

setAnimationBackground

Added in 1.4.0-beta01
@RequiresWindowSdkExtension(version = 5)
public final @NonNull EmbeddingAnimationParams.Builder setAnimationBackground(@NonNull EmbeddingAnimationBackground background)

Sets the animation background.

The default is to use the current theme window background color.

This can be supported only if the Window Extensions version of the target device is equals or higher than required API level. Otherwise, it would be no-op.

Parameters
@NonNull EmbeddingAnimationBackground background

the animation background.

Returns
@NonNull EmbeddingAnimationParams.Builder

this Builder.