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

DoNotInline


Denotes that the annotated method should not be inlined when the code is optimized at build time. This is typically used to avoid inlining purposely out-of-line methods that are intended to be in separate classes.

Example:

@DoNotInline
public void foo() {
...
}

Summary

Public constructors

android

Public constructors

DoNotInline

DoNotInline()