EmbeddingAnimationParams.Builder


class EmbeddingAnimationParams.Builder


Builder for creating an instance of EmbeddingAnimationParams.

Summary

Public constructors

Public functions

EmbeddingAnimationParams

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

EmbeddingAnimationParams.Builder

Sets the animation background.

Public constructors

Builder

Added in 1.4.0-beta01
Builder()

Public functions

build

Added in 1.4.0-beta01
fun build(): EmbeddingAnimationParams

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

Returns
EmbeddingAnimationParams

the new EmbeddingAnimationParams instance.

setAnimationBackground

Added in 1.4.0-beta01
@RequiresWindowSdkExtension(version = 5)
fun setAnimationBackground(background: EmbeddingAnimationBackground): EmbeddingAnimationParams.Builder

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
background: EmbeddingAnimationBackground

the animation background.

Returns
EmbeddingAnimationParams.Builder

this Builder.