{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

MovableContent

@InternalComposeApi
public final class MovableContent<P extends Object>


A Compose compiler plugin API. DO NOT call directly.

An instance used to track the identity of the movable content. Using a holder object allows creating unique movable content instances from the same instance of a lambda. This avoids using the identity of a lambda instance as it can be merged into a singleton or merged by later rewritings and using its identity might lead to unpredictable results that might change from the debug and release builds.

Summary

Public constructors

<P extends Object> MovableContent(
    @Composable @NonNull Function1<@NonNull parameter, Unit> content
)

Public methods

final @Composable @NonNull Function1<@NonNull parameter, Unit>

Public constructors

MovableContent

public <P extends Object> MovableContent(
    @Composable @NonNull Function1<@NonNull parameter, Unit> content
)

Public methods

getContent

public final @Composable @NonNull Function1<@NonNull parameter, UnitgetContent()