ModifiersBuilders.FadeInTransition.Builder


public final class ModifiersBuilders.FadeInTransition.Builder


Builder for FadeInTransition

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.FadeInTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

@NonNull ModifiersBuilders.FadeInTransition.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setInitialAlpha(@FloatRange(from = 0.0, to = 1.0) float initialAlpha)

Sets the starting alpha of the fade in 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.FadeInTransition build()

Builds an instance from accumulated values.

setAnimationSpec

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

Sets the animation parameters for duration, delay, etc.

setInitialAlpha

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.FadeInTransition.Builder setInitialAlpha(@FloatRange(from = 0.0, to = 1.0) float initialAlpha)

Sets the starting alpha of the fade in transition. It should be between 0 and 1. If not set, defaults to fully transparent, i.e. 0.