(#) androidx.compose.ui:ui-android Name : Compose UI Description : Compose UI primitives. This library contains the primitives that form : the Compose UI Toolkit, such as drawing, measurement and layout. License : [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) Vendor : Jetpack Compose Identifier : androidx.compose.ui Feedback : https://issuetracker.google.com/issues/new?component=612128 Min : Lint 8.7+ Compiled : Lint 8.7+ Artifact : androidx.compose.ui:ui-android:1.9.0-alpha01 (##) Included Issues |Issue Id |Issue Description | |----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------| |[UnnecessaryComposedModifier](UnnecessaryComposedModifier.md.html) |Modifier.composed should only be used for modifiers that invoke @Composable functions | |[LocalContextConfigurationRead](LocalContextConfigurationRead.md.html) |Reading Configuration using LocalContext.current.resources.configuration | |[LocalContextResourcesRead](LocalContextResourcesRead.md.html) |Reading Resources using LocalContext.current.resources | |[ConfigurationScreenWidthHeight](ConfigurationScreenWidthHeight.md.html) |Using Configuration.screenWidthDp/screenHeightDp instead of LocalWindowInfo.current.containerSize | |[ModifierFactoryExtensionFunction](ModifierFactoryExtensionFunction.md.html) |Modifier factory functions should be extensions on Modifier | |[ModifierFactoryReturnType](ModifierFactoryReturnType.md.html) |Modifier factory functions should return Modifier | |[ModifierFactoryUnreferencedReceiver](ModifierFactoryUnreferencedReceiver.md.html) |Modifier factory functions must use the receiver Modifier instance | |[ModifierNodeInspectableProperties](ModifierNodeInspectableProperties.md.html) |ModifierNodeElement missing inspectableProperties | |[ModifierParameter](ModifierParameter.md.html) |Guidelines for Modifier parameters in a Composable function | |[MultipleAwaitPointerEventScopes](MultipleAwaitPointerEventScopes.md.html) |Suspicious use of multiple awaitPointerEventScope blocks. Using multiple awaitPointerEventScope blocks may cause some input events to be dropped.| |[ReturnFromAwaitPointerEventScope](ReturnFromAwaitPointerEventScope.md.html) |Returning from awaitPointerEventScope may cause some input events to be dropped | |[SuspiciousCompositionLocalModifierRead](SuspiciousCompositionLocalModifierRead.md.html)|CompositionLocals should not be read in Modifier.onAttach() or Modifier.onDetach() | |[SuspiciousModifierThen](SuspiciousModifierThen.md.html) |Using Modifier.then with a Modifier factory function with an implicit receiver | (##) Including !!! This is not a built-in check. To include it, add the below dependency to your project. ``` // build.gradle.kts implementation("androidx.compose.ui:ui-android:1.9.0-alpha01") // build.gradle implementation 'androidx.compose.ui:ui-android:1.9.0-alpha01' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] ui-android = "1.9.0-alpha01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single # line (see https://github.com/toml-lang/toml/issues/516) so adjust # when pasting into libs.versions.toml: ui-android = { module = "androidx.compose.ui:ui-android", version.ref = "ui-android" } ``` 1.9.0-alpha01 is the version this documentation was generated from; there may be newer versions available. NOTE: These lint checks are **also** made available separate from the main library. You can also use `androidx.compose.ui:ui-lint:1.9.0-alpha01`. (##) Changes * 1.5.0: First version includes ComposableModifierFactory, ModifierFactoryExtensionFunction, ModifierFactoryReturnType, ModifierFactoryUnreferencedReceiver, ModifierNodeInspectableProperties, ModifierParameter, MultipleAwaitPointerEventScopes, ReturnFromAwaitPointerEventScope, SuspiciousCompositionLocalModifierRead, UnnecessaryComposedModifier. * 1.6.0: Removes ComposableModifierFactory. * 1.7.0: Adds SuspiciousModifierThen. * 1.8.0: Adds ConfigurationScreenWidthHeight, LocalContextConfigurationRead. * 1.9.0-alpha01: Adds LocalContextResourcesRead. (##) Version Compatibility There are multiple older versions available of this library: | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| | 1.9.0-alpha01|2025/04/23| 13| Yes| 8.7+| 8.7+| | 1.8.0|2025/04/23| 12| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 1.7.8|2025/02/12| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.7|2025/01/29| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.6|2024/12/11| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.5|2024/10/30| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.4|2024/10/16| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.3|2024/10/02| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 10| No[^2]| 8.0 and 8.1|8.0 and 8.1| | 1.6.8|2024/06/12| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.7|2024/05/01| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.6|2024/04/17| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.5|2024/04/03| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.4|2024/03/20| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.3|2024/03/06| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.2|2024/02/21| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.1|2024/02/07| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.0|2024/01/24| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.4|2023/10/18| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.3|2023/10/04| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.2|2023/09/27| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.1|2023/09/06| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.0|2023/08/09| 10| Yes| 8.0 and 8.1|8.0 and 8.1| Compatibility Problems: [^1]: org.jetbrains.kotlin.analysis.api.calls.KaCallKt#getCalls(org.jetbrains.kotlin.analysis.api.resolution.KaCallInfo): java.util.List is not available [^2]: org.jetbrains.kotlin.analysis.api.KaSession#resolveCall(org.jetbrains.kotlin.psi.KtElement): org.jetbrains.kotlin.analysis.api.resolution.KaCallInfo is not available