ModifiersBuilders.FadeOutTransition.Builder


class ModifiersBuilders.FadeOutTransition.Builder


Builder for FadeOutTransition

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.FadeOutTransition

Builds an instance from accumulated values.

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

Sets the animation parameters for duration, delay, etc.

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

Sets the target alpha of the fade out 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.FadeOutTransition

Builds an instance from accumulated values.

setAnimationSpec

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

Sets the animation parameters for duration, delay, etc.

setTargetAlpha

Added in 1.0.0
fun setTargetAlpha(targetAlpha: @FloatRange(from = 0.0, to = 1.0) Float): ModifiersBuilders.FadeOutTransition.Builder

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.