ModifiersBuilders.AnimatedVisibility.Builder


public final class ModifiersBuilders.AnimatedVisibility.Builder


Builder for AnimatedVisibility

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.AnimatedVisibility

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.AnimatedVisibility.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setEnterTransition(
    @NonNull ModifiersBuilders.EnterTransition enterTransition
)

Sets the content transition that is triggered when element enters the layout.

@NonNull ModifiersBuilders.AnimatedVisibility.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setExitTransition(
    @NonNull ModifiersBuilders.ExitTransition exitTransition
)

Sets the content transition that is triggered when element exits the layout.

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.AnimatedVisibility build()

Builds an instance from accumulated values.

setEnterTransition

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.AnimatedVisibility.Builder setEnterTransition(
    @NonNull ModifiersBuilders.EnterTransition enterTransition
)

Sets the content transition that is triggered when element enters the layout.

setExitTransition

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull ModifiersBuilders.AnimatedVisibility.Builder setExitTransition(
    @NonNull ModifiersBuilders.ExitTransition exitTransition
)

Sets the content transition that is triggered when element exits the layout. Note that indefinite exit animations are ignored.