ModifiersBuilders.FadeOutTransition.Builder


public final class ModifiersBuilders.FadeOutTransition.Builder


Builder for FadeOutTransition

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.FadeOutTransition

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.FadeOutTransition.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setAnimationSpec(
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

Sets the animation parameters for duration, delay, etc.

@NonNull ModifiersBuilders.FadeOutTransition.Builder
setTargetAlpha(@FloatRange(from = 0.0, to = 1.0) float targetAlpha)

Sets the target alpha of the fade out transition.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.FadeOutTransition build()

Builds an instance from accumulated values.

setAnimationSpec

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.FadeOutTransition.Builder setAnimationSpec(
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

Sets the animation parameters for duration, delay, etc.

setTargetAlpha

Added in 1.0.0
public @NonNull ModifiersBuilders.FadeOutTransition.Builder setTargetAlpha(@FloatRange(from = 0.0, to = 1.0) float targetAlpha)

Sets the target alpha of the fade out transition. It should be between 0 and 1. If not set, defaults to fully invisible, i.e. 0.