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

DisallowComposableCalls

@MustBeDocumented
@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.TYPE])
public annotation DisallowComposableCalls


This will prevent composable calls from happening inside of the function that it applies to. This is usually applied to lambda parameters of inline composable functions that ought to be inlined but cannot safely have composable calls in them.

Summary

Public constructors

Public constructors

DisallowComposableCalls

public DisallowComposableCalls()