androidx.compose.runtime.internal
Interfaces
ComposableLambda |
Cmn
android
N
JS
|
|
ComposableLambdaN |
android
|
Annotations
Decoy |
With decoys enabled, indicates original composable function that was stubbed by compiler plugin. |
Cmn
|
DecoyImplementation |
With decoys enabled, indicates composable implementation function created by compiler plugin. |
Cmn
|
FunctionKeyMeta |
This annotation is applied to the FunctionKeyMeta classes created by the Compose Compiler. |
Cmn
|
FunctionKeyMetaClass |
This annotation is applied to the FunctionKeyMeta classes created by the Compose Compiler. |
Cmn
|
LiveLiteralFileInfo |
This annotation is applied to LiveLiteral classes by the Compose Compiler. |
Cmn
|
LiveLiteralInfo |
This annotation is applied to functions on the LiveLiteral classes created by the Compose Compiler. |
Cmn
|
StabilityInferred |
This annotation is added on classes by the compiler when their stability is inferred. |
Cmn
|
Top-level functions summary
Top-level properties summary
Top-level functions
composableLambda
@ComposeCompilerApi
fun composableLambda(composer: Composer, key: Int, tracked: Boolean, block: Any): ComposableLambda
composableLambdaInstance
@ComposeCompilerApi
fun composableLambdaInstance(key: Int, tracked: Boolean, block: Any): ComposableLambda
composableLambdaN
@ComposeCompilerApi
fun composableLambdaN(
composer: Composer,
key: Int,
tracked: Boolean,
arity: Int,
block: Any
): ComposableLambdaN
composableLambdaNInstance
@ComposeCompilerApi
fun composableLambdaNInstance(key: Int, tracked: Boolean, arity: Int, block: Any): ComposableLambdaN
enableLiveLiterals
@InternalComposeApi
fun enableLiveLiterals(): Unit
When called, all live literals will start to use their values backed by MutableState.
Caution: This API is intended to be used by tooling only. Use at your own risk.
illegalDecoyCallException
@ComposeCompilerApi
fun illegalDecoyCallException(fName: String): Nothing
Used with decoys to stub the body of the decoy function. Any call to this function at runtime indicates compiler error, as all calls to decoys should be compiled out.
| Throws | |
|---|---|
kotlin.IllegalStateException |
liveLiteral
@InternalComposeApi
@ComposeCompilerApi
fun <T : Any?> liveLiteral(key: String, value: T): State<T>
Constructs a State object identified by the provided global key and initialized to the provided value. This value may then be updated from tooling with the updateLiveLiteralValue API. Only a single State object will be created for any given key.
Caution: This API is intended to be used by tooling only. Use at your own risk.
rememberComposableLambda
@Composable
@ComposeCompilerApi
fun rememberComposableLambda(key: Int, tracked: Boolean, block: Any): ComposableLambda
rememberComposableLambdaN
@ComposeCompilerApi
@Composable
fun rememberComposableLambdaN(key: Int, tracked: Boolean, arity: Int, block: Any): ComposableLambdaN
updateLiveLiteralValue
@InternalComposeApi
fun updateLiveLiteralValue(key: String, value: Any?): Unit
Updates the value of a State object that was created by liveLiteral with the same key.