ModifiersBuilders.FadeInTransition.Builder


class ModifiersBuilders.FadeInTransition.Builder


Builder for FadeInTransition

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.FadeInTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

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

Sets the starting alpha of the fade in transition.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ModifiersBuilders.FadeInTransition

Builds an instance from accumulated values.

setAnimationSpec

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

Sets the animation parameters for duration, delay, etc.

setInitialAlpha

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

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.