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
|
Composables
rememberComposableLambda |
Cmn
|
|
rememberComposableLambdaN |
android
|
Top-level functions summary
ComposableLambda |
@ComposeCompilerApi |
Cmn
|
ComposableLambda |
@ComposeCompilerApi |
Cmn
|
ComposableLambdaN |
@ComposeCompilerApi |
android
|
ComposableLambdaN |
@ComposeCompilerApi |
android
|
Unit |
When called, all live literals will start to use their values backed by |
Cmn
|
Int |
identityHashCode(instance: Any?)Returns the hash code for the given object that is unique across all currently allocated objects. |
N
|
Nothing |
Used with decoys to stub the body of the decoy function. |
Cmn
|
State<T> |
@InternalComposeApiConstructs a |
Cmn
|
Unit |
@InternalComposeApiUpdates the value of a |
Cmn
|
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.
identityHashCode
fun identityHashCode(instance: Any?): Int
Returns the hash code for the given object that is unique across all currently allocated objects. The hash code for the null reference is zero.
Can be negative, and near Int.MAX_VALUE, so it can overflow if used as part of calculations. For example, don't use this:
val comparison = identityHashCode(midVal) - identityHashCode(leftVal)
if (comparison < 0) ...
Use this instead:
if (identityHashCode(midVal) < identityHashCode(leftVal)) ...
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 | |
|---|---|
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.
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.