API Changes
- Deprecating
GeospatialMode.VPS_AND_GPSin favor ofGeospatialMode.SPATIALand introducing a new lower-power tracking mode,GeospatialMode.INERTIAL, which uses only IMU and GPS. I1e6cd - Custom anchor exception classes:
AnchorInvalidUuidException,AnchorNotAuthorizedException,AnchorUnsupportedLocationException,AnchorRuntimeFailureException, andAnchorUnsupportedObjectExceptionare nowRuntimeExceptioninstances, not intended to be checked. I9356e - Added
ArCoreTestRuleAPI, includingTestArDevice,TestAugmentableObject,TestDepthMap,TestEye,TestFace,TestGeospatial,TestHand,TestPlane,TestRenderViewpoint, &TestTrackableI0ad3c - Removes
AnchorLoadInvalidUuid,AnchorCreateUnsupportedObject,AnchorCreateUnsupportedLocation, andAnchorCreateNotAuthorized. All of these errors are now exceptions in the runtime. RemovesAnchorCreateIllegalState. This has been replaced withAnchorCreateTrackingUnavailablein most cases. AddsAnchorExceptionand derived classesAnchorInvalidUuidException,AnchorNotAuthorizedException,AnchorUnsupportedLocationException,AnchorRuntimeFailureException, andAnchorUnsupportedObjectException. I4c4dd
External Contribution
- Added
AugmentedImageAPI for custom marker tracking I0cf09
- Spotlight Section: Showcases featured content collections or editorial recommendations by pairing a prominent hero image with adjacent condensed items.
- Condensed Items: Displays compact visual components that restrict text to one line, allowing more content to fit on the screen without overwhelming the driver.
- Chips: Provides compact, interactive elements used to filter content or trigger quick actions, supporting customizable shapes, borders, and colors.
- Minimized Control Panel: Implements a persistent, responsive, and condensed version of the Now Playing View (NPV) that automatically appears during active playback.
- Banners: Showcases special app experiences, new features, or important messages with distinct visual prominence through customizable background fills and corner radii.
- Section Header: Defines interactive titles, overlines, brand icons, and trailing action buttons for individual content groups within the sectioned item template.
- Expanded Header Layout: Upgrades standard headers within the sectioned item template to support rich layouts, such as background images that collapse on scroll and secondary actions.
Version 1.9.0-alpha01 contains these commits.
API Changes
- Added
BannerandBannerSectionwhich allowsBannersto be added toSectionedItemTemplate. Id5dd2 b/505494611 - Added
NavigationManager.setVoiceAssistantCapabilitiesto allow navigation apps to send their voice assistant capabilities and consent status to the host. I34c93 b/489625791 b/486967456 - Added
NavigationVoiceAssistantCapabilitiesAPI for navigation apps to declare supported voice actions, disruptions, and voice assistant consent status. I79d3e b/489625791 b/486967456 - Introduce
CarAppApiLevel9 I87656 b/501233317 - Add an API to set the Shape of a
ChiporChipSectionviaChipStyleI1fcfc b/505086379 - Added new
CondensedItemandCondensedSectionAPIs to support high-density layouts inSectionedItemTemplate. Iabaa8 b/499350859 - Added experimental support for subtitles in Header and a new Background model. I66b5b
API Changes
DeferredTargetAnimationis no longer experimental, please remove opt-in into androidx-main- Added
mutableTransformparameter toAnimatedVisibilityandAnimatedContentto support direct manual property manipulation (e.g., for predictive back gestures) during a deferred transition phase. I236e8 DeferredTargetAnimationis no longer experimental, please remove opt-in. I1e4ae b/500030165- New enum to support triggers in ui-tooling I6e198 b/478807872
API Changes
- In the experimental Style API, added support for creating custom style types that can have custom style scopes. This allows subsetting the properties settable by a style (such as removing the graphics layer or text properties entirely) as well as allowing the scope to be extended independently of other styles (such as only supporting the
playing { }syntax in aMediaPlayercomposable). This change breaks binary and source compatibility. The primary change that breaks source compatibility is that helper functions in theStyleScopehave moved to be extension functions (e.g.fun contentProperty(all: Dp)is now an extension function). Either importing the required extension functions or by importing all symbols from androidx.compose.foundation.styles should be all that is required get code that calls these methods to compile correctly. I1ef27 b/493676648. ScrollIndicatorStateimplementations now correctly return the scroll offset from the visual start for reversed layouts, ensuring correct visual presentation of indicators. Ia3fae b/503604996- Added flag
isClearNestedScrollCoroutineScopeFixEnabledto control the fix. Ibd394 b/505343254
External Contribution
- Enabled auto-scrolling when dragging text selection beyond the viewport in
SelectionContainer. Ibcb08 b/424433794
API Changes
- Removed
shouldUsePrecisionPointerComponentSizingfunction I882c3 b/498698039 - Fixed an issue where the tooltip caret would appear on the wrong side when the tooltip flipped due to screen edges. Idc314 b/479224210
- Introduced
rememberBottomSheetStateas the unified API forBottomSheetstate. DeprecatedrememberModalBottomSheetStateandrememberStandardBottomSheetStatein favor of the new unified API. I2724e b/500005697 - Remove deprecated experimental
WideNavigationRailAPIs Iaadd6 b/497891040 - Graduate
SplitButtonAPIs to non-experimental. I4d395 b/497876691 - Deprecate the
DropdownMenuItemAPIs with checked and selected params that havesupportingTextas a trailing lambda. MovedsupportingTextto be a parameter right aftertrailingIcon. Icaf79 b/503047115
Bug Fixes
- Update Navigation Drawer predictive back handler to allow going back while drawer is opening instead of only when fully opened I714ae b/418556231
Bug Fixes
- Fixed an issue in an internal data type that could cause an exception in rare cases with movable content. Ic478f b/507724717
Bug Fixes
- Resolved several issues in the
LinkTablewhere diagnostic stack traces would be unpopulated or missing information I3918c - Fixed an issue in an internal data type that could cause an exception in rare cases with movable content. Ic478f b/507724717
- Fixed an issue in the
LinkComposer's skipping behavior that resulted in inconsistent behavior compared to theGapComposer, unexpected recalculation of default arguments, and test timeouts. I783dc
API Changes
- Added a new
credentialRequestSemantics property and aCredentialRequestDatahelper on API 34+ to allow Jetpack Compose text fields to integrate with Android's Credential Manager via the Autofill framework. Ida2bf b/488446455 - Added a
ParagraphIntrinsicsfactory function that takes thesoftWrapargument among others. Internally, we could use it as a signal that the text is rendered as a single line and perform certain optimisations. I66ca4 b/485495112 - Added support for automatic interaction sounds (clicks and focus navigation) to Compose components, with a new
SoundEffectOnInteractionComposable to allow opt-out. Note that as a consequence of this change semantics click listeners must now be called from the main thread, which may effect a small number of test cases. I78f65 - Stabilized
Fontfactory function takingvariationSettings. I183f2 - Stabilized
ResourceFontloadingStrategyproperty andcopymethod. I40d84 - Stabilized
InterceptPlatformTextInputandPlatformTextInputInterceptorAPIs. Id2784 - To improve platform separation,
registerIdlingResourceandunregisterIdlingResourcehave been moved to extension functions; you may need to update your imports. I21d3d b/471148519 - Introduced
runWithoutImplicitWaittoComposeTestRuleandComposeUiTestto improve test performance during state inspection. This API allows to execute a block of code with implicit synchronization disabled, avoiding the overhead of repeated synchronizations for each node query. This results in significantly faster test execution, especially for tests that manually step through frames and sample multiple properties, such as in animation testing. Ie00e9 b/490270394 - The
@PreviewWrapperannotation can now be applied toMultiPreviewannotation classes, allowing developers to create reusable, pre-wrapped preview configurations. I8ae66 b/511170361 - Introduces
MeshGradientPainterfor rendering mesh gradients.Modifier.meshGradienthas been removed, useMeshGradientPainterwithModifier.paintinstead.MeshGradientRendereris now internal. I2d170 b/508110246 - Rulers can now be provided individually by supplying a lambda that responds whether the Ruler can be provided, along with separate lambda that provides the Ruler's value. The
isRulerProvidedlambda isn't observed and should be optimistic in whether a value can be provided. TherulerProviderlambda is observed so that if any value changes, it will update the ruler value and all readers of the ruler. Ie9089 - In the experimental Style API, added support for creating custom style types that can have custom style scopes. This allows subsetting the properties settable by a style (such as removing the graphics layer or text properties entirely) as well as allowing the scope to be extended independently of other styles (such as only supporting the
playing { }syntax in aMediaPlayercomposable). This change breaks binary and source compatibility. The primary change that breaks source compatibility is that helper functions in theStyleScopehave moved to be extension functions (e.g.fun contentProperty(all: Dp)is now an extension function). Either importing the required extension functions or by importing all symbols from androidx.compose.foundation.styles should be all that is required get code that calls these methods to compile correctly. I1ef27 b/493676648 - Adds
updatePointerBy()with default argument for the pointer id. I99f30 b/502001776 DeferredTargetAnimationis no longer experimental, please remove opt-in." into androidx-main- Added flag
isClearNestedScrollCoroutineScopeFixEnabledto control the fix. Ibd394 b/505343254 DeferredTargetAnimationis no longer experimental, please remove opt-in. I1e4ae b/500030165- New enum to support triggers in ui-tooling I6e198 b/478807872
- The
ComposeViewContextis allowed to be created without the reference View being attached. It still requires that the reference View is attached prior to callingsetContent(). Id0952
Bug Fixes
- Fixes
focusRestorernot properly restoring focus when multiple save calls occur for the same layout I10277 b/505371994 - A previous performance improvement had the side-effect of disallowing unattached
ComposeViewsfrom being measured. This change now allows it without reintroducing the performance problem. I9b2c5 b/508650647 - Composition is now recreated on
ComposeViewContextchange to support faster access to theComposeViewContext. I3b3a8 b/487364963 - Allow Compose to set non-sRGB colors on paint and shader on Android, preserving wide color gamut by correctly mapping Compose color spaces to platform equivalents. Color spaces not supported for platform rendering operations (e.g., CIE XYZ, CIE Lab, OkLab) or not available on the current API level will safely fallback to the Srgb color space. I3efb5 b/388511109
External Contribution
API Changes
- Add new API
close()forUwbManagerto unbound the UWB service. I4606f b/498499531
API Changes
- Bumps api and remote compose versions by 1 for glance Ia4ea3
- Add snap scrolling support when remote compose is used I0ca9d
Bug Fixes
- Updated Compose
compileSdkto API 37. This means that a minimum AGP version of 9.2.0 is required when using Compose. Id45cd b/413674743 - Add default Wear Widget background when
WearWidgetBrushis empty or not specified. I8300b - Add wear widget background painter api. Id883e b/449785790
API Changes
- Expose
glance.wear.health.DataTypeAPIs in Wear Widget. These APIs can be used by developers to access system health data.
Bug Fixes
- Fixed a crash loop happening in the alpha09 version on Wear 7 emulator or devices running 1.6 renderer by not allowing empty font axis to be send to the Player for Glance Wear Widget.
API Changes
- Added an optional
enabledparameter toModifier.surfacewhich applies a visual overlay when the surface is disabled. I8b781 - Introduced
reverseLayoutinGlimmerPagerLayoutInfoI73818 b/481669559 - Rename
animateShapetoanimatedShapeinToggleButtonDefaultsandIconToggleButtonDefaultsI15f00 - Renamed
List-related components to use theGlimmerLazyListprefix. If0737 b/425919254 b/483126735 - Initial implementation of voice indicator for Glimmer I446c7 b/481998624
- Remove focusable and clickable overloads for 'surface' modifier. Now it's a single modifier that is responsible only for visual effects. Manually add 'focusable' / 'clickable' / other modifiers to create interactive surfaces - see the samples for more information. I12dbe
API Changes
- Introduced
transformingMovablefor default system-handled 3D movement and introduced a new overload formovableto handle custom movement behaviors. I50960 SpatialGltfModel.fromData()was removed. I4d083- Added a new modifier node interface,
SubspaceMeasuredSizeAwareModifierNode, which provides anonRemeasuredcallback after the measure pass.SubspaceLayoutAwareModifierNodenow extends this new interface. TheonSizeChangedmodifier has been updated to useonRemeasured, ensuring the callback is triggered right after measurement, not after placement. Iafbae - Updated
InteractionPolicyto anInterfaceI0ff30 - Updated Compose
compileSdkto API 37. This means that a minimum AGP version of 9.2.0 is required when using Compose. Id45cd - Updated
Sizekdocs Iefa9a
API Changes
Entity.dispose()is now removed as public API. Instead of callingdispose()on Entity instances, apps can make instances cleanable by setting theparenttonulland by clearing any strong references to those instances. I396c9SoundEffectPool'sset/clearOnLoadCompleteListenermethods have been deleted. Useadd/removeLoadCompleteListenerinstead. Iae78d- Scene's
set/clearSpatialVisibilityChangedListenerwas replaced withadd/removeSpatialVisibilityChangedListener. I67dff - All SceneCore
add/removeOnFooListenermethods have been renamedadd/removeFooListener, removingOnfrom the name. Ibe50b AnchorEntity.setOnOriginChangedListenerandAnchorEntity.setOnStateChangedListenermethods have been replaced withadd/removeFooListenermethods, to support multiple simultaneous Listeners. I13749- Renamed
AnchorEntity.State.TIMEDOUTtoState.TIMED_OUT. Id2b8d - The Component API has been refactored for improved safety and extensibility.
Componentis now an abstract class. TheonAttach()andonDetach()methods are nowprotectedto prevent direct calls. Please useEntity.addComponent()andEntity.removeComponent()to manage component lifecycles. Id04e8 - SceneCore's
PlaneSemanticTypePlaneOrientationconstants have been migrated from Ints to custom types. TheirANYconstants will be removed, clients should explicitly enumerate all desired constants instead, or use the new.ALLimmutable Set constants. TheAnchorEntityfactory method now accepts a Set of these types, instead of a single value. Ib1033 - Added support for skeletal animation (skinning) to the experimental Custom Mesh API. Developers can now animate custom meshes by specifying a
boneCountwhen creating aMeshEntityand updating the animation in real-time usingMeshEntity.setBoneTransforms(). Id8ba2 b/496692490 - Introduced the experimental
CustomMeshAPI. Developers can now programmatically create and render 3D geometry in their scenes usingCustomMesh,MeshBuffer, andMeshEntity. I94617 - Removed
androidx.xr.scenecore.SpatializerConstants.SourceType.SOURCE_TYPE_SOUND_FIELD. UseSourceType.SOUND_FIELDinstead. Ia68b9 - Adding spatial audio components:
PositionalAudioComponent,SoundEffectPoolComponentandSoundFieldAudioComponentIeda89 AnchorEntity.getAnchorwas replaced withAnchorEntity.anchorand will now return anAnchorwhen theAnchorEntitywas created from an ARCoreAnchorI5c7c8- The default value for the
parentparameter in theActivityPanelEntity,GltfModelEntity,GroupEntity,PanelEntity, andSurfaceEntityfactory methods has been changed fromActivitySpacetonull. To attach an entity to the scene graph and render it visible, developers must now explicitly set its parent during instantiation or viaEntity.parent = ...Ie7cc1
Bug Fixes
SceneCorenow automatically reclaimsEntityinstances when they become phantom reachable, removing the need for developers to explicitly invokedispose()to free resources. To ensure an [Entity] instance is properly reclaimed, developers should:- Detach it from the scene graph by setting its
parenttonull. - Relinquish all strong references to the instance in their code.
- Note on Special Entity Types: For entities that cannot be parented (such as
AnchorEntity), developers must maintain a strong reference while the instance is in use. If all references are released, these instances will become phantom reachable and will be automatically reclaimed. I83fe4
- Detach it from the scene graph by setting its
- Narrowed Proguard keep rules for all
SceneCorelibraries. I98447
Known Issues
- Attaching a
PositionalAudioComponentto anEntitywith an inactiveExoPlayerinstance will cause a crash. Do not callsetPointSourceParamsor attach/detach the spatial audio components while ExoPlayer is stopped. This will be fixed in the next release.
API Changes
- Support
SpanSizeLookupwith the ability to occupy all spans and padding area. I7f87c - Expose
getNumColumns()andgetNumRows()Icd8c0 b/138276997 - Removing obsolete
@RequiresApi(21)annotations Ic4792
Bug Fixes
- Fix leaking child views after adapter is reset. I636a0
- Moving the default
minSdkfrom API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
API Changes
- Add
setSelectedPositionToUnalignedChildandsetSelectedPositionToAlignedChildto change selected position without triggering scrolling. If53ab b/499067714 - Provides
setFocusScrollStrategy(FOCUS_SCROLL_ALIGNED_AND_SNAP)to support snapping in touch mode. I55fbc - Support
SpanSizeLookupwith the ability to occupy all spans and padding area. I7f87c - Expose
getNumColumns()andgetNumRows()Icd8c0 b/138276997
Bug Fixes
- Fix leaking child views after adapter is reset. I636a0
- Moving the default
minSdkfrom API 21 to API 23 Ibdfca b/380448311 b/435705964 b/435705223
API Changes
- Add a
rememberViewModelStoreNavEntryDecoratoroverload that accepts aViewModelStoreProvider. This allows developers to hoist the provider above the decorator's composition scope, enabling use cases such as supporting multiple back stacks where the same entry exists in both but requires separate state. Ibbbfe b/503420425 - Prevent premature clearance of shared
ViewModelswhen a sibling provider is removed from the composition. Ib321a
Bug Fixes
- Require Compose UI 1.7.0+ to use
LocalLifecycleOwner. This removes internal reflection fallbacks, improving performance but enforcing a strict dependency upgrade for clients. I48e65 - Prevent symbol duplication with older JetBrains fork versions when upgrading to Compose Multiplatform 1.11.0. Iccd64
- Fix an issue where
ViewModelswere incorrectly cleared during recomposition when usingrememberViewModelStoreProviderwith unstable default parameters. The provider now only recreates when the parent owner or the explicit key changes. Ibe296 b/501792448
API Changes
- Changed
Orbiterto use either anOrbiterAnchorPoint+VolumeOffsetor anOrbiterPoseProviderinstead of position, offset, offsetType, alignment, and elevation. Also removed theshouldRenderInNonSpatialparameter. If the developer does not want the orbiter to render in non-spatial they should wrap the orbiter in an if statement and check theSpatialCapabilities. I9fbb3 - Added movable modifiers. These modifiers currently work for
SpatialPanelsandSpatialExternalSurface. They will be supported in the future forSpatialGltfModeland eventually allSubspaceComposables. I9a3cd
Bug Fixes
- Bumped
NavigationEventdependency to 1.1.1 which removed the no-opNavigationEventHandlerwhen in inspection mode to enable Predictive Back in Android Studio Previews.
New Features
Navigation 3 now supports deep links with DeepLinkRequest and DeepLinkMatcher:
DeepLinkRequesta requested deep link containing aDeepLinkUriand an optional mimeType or action(Android only). Along with the new class are companion functions to create an instance with either auri, amimeType, or anaction. The android platform also has a helper to build a request from an Intent. Iaaac9 b/470282247val uriOnlyRequest = DeepLinkRequest.fromUriString("https://sampledeeplink.com/home") val uriAndMimeRequest = DeepLinkRequest.fromUriString( "https://sampledeeplink.com/user/profile?id=123", "image/png" )DeepLinkMatcherrepresents a deep link that can be matched with aDeepLinkRequest. Each matcher instance is associated with the navigation key that supports this deep link. A navigation key can be associated with multiple matchers. CallingDeepLinkMatcher.matchwill return aMatchResultthat contains the associated navigation key if match succeeds. There are two defaultDeepLinkMatcherimplementations:UriDeepLinkMatcherfor matching deep links based on Uri, andStaticKeyDeepLinkMatcherfor matching deep links with onlyDeepLinkMatcher.Filterthat match by aBoolean. I3798e b/470282247UriDeepLinkMatcheran opinionated implementation ofDeepLinkMatcherthat handles deep link by matchingDeepLinkUrito a Serializable navigation key. It supports deep link arguments of Primitive types or Collection of primitives such as Lists, Arrays, and Sets. I1520b b/470282247@Serializable data class UserKey(val id: Int): NavKey // declare a deep link supported by UserKey val userMatcher = UriDeepLinkMatcher( uriPattern = "www.sampledeeplink.com/user?userId={id}", serializer = serializer<UserKey>() ) // handle a requested deep link with fallback key val key = userMatcher.match(deepLinkRequest)?.key ?: HomeKeyAdded
DeepLinkUriwhich is a kotlin-multiplatform version ofandroid.net.UriId4725 b/470282247
Api Changes
- Bumped to
compileSdk 37to match Compose's compileSdk
Bug Fixes
- Fixed
AnimatedBottomSheetSample'sIllegalArgumentExceptionwhen displaying multiple overlays. The sampleSceneStrategywill now correctly calculate the last non-OverlaySceneand display it under all the overlay scenes. If2281 b/506733412 - Bumped
NavigationEventdependency to 1.1.1 which removes the no-op NavigationEventHandler when in inspection mode to enable Predictive Back in Android Studio Previews. I487fd
API Changes
- Expose
RemoteIntstatic factory. Ic0096 b/484137042 - Expose
RemoteStatestatic factories I544f0 b/484137042 RemoteLongnow supports a limited subset of arithmetic operators (addition, subtraction, multiplication and a truncating conversion toRemoteInt). I1d416- Update
RemoteTextto useRemoteFontFamilyinstead ofFontFamilyIb76b6 b/502907551 - Modifiers alpha, rotate and scale were added. I5d682 b/505427444
API Changes
- Updates
@Relationand@Junctionsuch thatparentColumnsandentityColumnsproperties are an array of column names to be used as keys for solving relationships, in turn supporting composite relationship keys. I92196 b/64247765
Important changes since 1.4.0:
- Enable generic serialization for
SavedStateobjects, allowing them to be encoded and decoded using standard formats like CBOR or JSON across all platforms. Iafda4 b/425919375 - Add
putKotlinSerializableandgetKotlinSerializableextension functions toSavedStateWriterandSavedStateReaderto allow directly storing and retrieving Kotlin Serializable objects using keys, streamlining the integration with SavedState APIs. (Iba02e) - Add factory functions for
LifecycleOwner,ViewModelStoreOwner, andSavedStateRegistryOwnerto reduce boilerplate when composing custom owner components. I9682c - Enable saving and restoring
SnapshotStateSet(created viamutableStateSetOf()) withrememberSerializable. You can now useSnapshotStateSetinrememberSerializablewithout requiring a custom saver. I9a4ed b/449498367
API Changes
- Deprecate all APIs in junit-gtest. I355df b/500007449
Bug Fixes
- Change
minSdkVersionto 21 to allow for NDK upgrade Ic748f
API Changes
- Add the ability to discover and override instances of
TraceDriverto be used process wide. I3f715 - Rename
Tracer.recordExceptiontoTracer.recordExceptionAndThrow. I4411f b/503092450
Bug Fixes
Fix border drawing on
TransformingLazyColumnitems I0c3c1 b/510772213Fix
itemSpacingassignment inTransformingLazyColumncontent padding measurement strategy I12d2f b/498137919
API Changes
- Add non-composable
Modifier.oneHandedGesture()if developer wants to provide the key manually. I191e1 b/504712626 - Remove gesture indicators from
OneHandedGestureDefaultsand add color support to one-handed gestures I7934f b/505009712 b/504712626 - Added explicit handling for one-handed dismiss gestures in
AlertDialog. Id71e8 b/509675781 DeferredTargetAnimationis no longer experimental, please remove opt-in. I1e4ae b/500030165
Bug Fixes
- Fix concurrency issue when triggering one-handed gestures I7b95f b/512086558
- Fixed that one-handed gesture indicators are mirrored based on wrist orientation rather than
LayoutDirection. I6db5d b/512003346 - Fix border drawing on TLC items I0c3c1 b/510772213
- Added inline image previews for samples in Kdoc for
SurfaceTransformation.kt,SwitchButton.kt andTextButton.kt. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for each button variant and example. Ib53ae b/484905061 - Added inline image previews for all samples in Kdoc of Button.kt. These images will now render directly in the documentation on the Wear Compose Material 3 DAC pages, providing developers with immediate visual context for each button variant and example. Ie2fb5 b/484905061
- Added inline image previews for samples in KDoc within
Card.kt,IconButton.kt,LevelIndicator.kt, andListHeader.kt. These images will now render in the documentation for Wear Compose Material 3 DAC pages. I371bc b/484905061 - Added inline image previews for samples in KDoc for
Picker,SegmentedCircularProgressIndicator,Slider, andStepper. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. I6c6ef b/484905061 - Added inline image previews for samples in KDoc for
CheckboxButton,SplitCheckboxButton,CircularProgressIndicator,ConfirmationDialog,SuccessConfirmationDialog,FailureConfirmationDialog, andcurvedText. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. Ie4662 b/484905061 Fix AlertDialogScreenshotTest testI9be58 b/508678506- Added inline image previews for samples in KDoc for
NonClickableCard,OpenOnPhoneDialog,VerticalPageIndicator,VerticalPagerScaffold, andRadioButton. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. I2aa2d b/484905061
API Changes
- Expose
RemoteStatestatic factories I544f0 b/484137042 - Update
RemoteTextto useRemoteFontFamilyinstead ofFontFamilyIb76b6 b/502907551
API Changes
- Added
startRemoteActivityAttemptUnlockandstartPhoneActivityWithUnlocktoRemoteActivityHelper, allowing Wear OS applications to start an activity on the connected phone after unlocking the phone, subject to user enrolling in feature and platform capability.startRemoteActivityAttemptUnlockcan fall back to existingstartRemoteActivitywhen feature not available. Ic23ae b/468374830
API Changes
- Added
WebViewCompat#navigate, an enhanced version ofWebView#loadUrl. LikeloadUrl, this method will load the specified url in theWebView, but offers the following additional capabilities:- Allows replacing the current page in the navigation history.
- Returns a Navigation object, allowing the developer to match between the navigate call and navigation callbacks.
- Handles extra headers in a more consistent and understandable manner, including saving and restoring them when using save state. Iedefd b/408128748
- Deprecated
SpeculativeLoadingParameters. Apps should migrate to the more specificPrerenderParametersorPrefetchParametersfor controlling speculative loading features. (I8afed) - Added new methods to
Profileto manage prerendering behavior:Profile#getMaxPrerenders()to get the current limit andProfile#clearMaxPrerenders()to reset it to the default. I696ed - Removed the experimental
Profile#setOriginMatchedHeaderand associated methods. The APIs have been superseded by Profile#addCustomHeader, which was released as a stable API in1.15.0. Ia7f5c b/485235632
API Changes
- Deprecating
GeospatialMode.VPS_AND_GPSin favor ofGeospatialMode.SPATIALand introducing a new lower-power tracking mode,GeospatialMode.INERTIAL, which uses only IMU and GPS. I1e6cd - Removes deprecation tag on
androidx.xr.runtime.FieldOfView. Makesandroidx.xr.runtime.math.FieldOfViewa type aliaas ofandroidx.xr.runtime.FieldOfViewin preparation for the latter's removal in the next release. Clients must migrate to theandroidx.xr.runtime.mathversion wherever they are using theandroidx.xr.runtimeversion. I6ce15 - Added the
PreviewProjectedApiannotation Ic49f6 - Removed
AugmentedObjectCategory.allSupportedI08656 - Adding APIs in
XrDevicefor determining device support for hand tracking, eye tracking, depth estimation, geospatial, and rendering. I00696 Session.getNativeDatahas been replaced withXrDevice.getNativeInstanceDataandSession.getNativeSessionData. Ieb077- Annotated
DeviceTrackingMode.INERTIAL_LAST_KNOWNwith@PreviewSpatialApi. I99868 - Added
XrDeviceTestRulefor its use in unit tests. I87584 - Adding
CATEGORY_XR_PROJECTED_LAUNCHER, this constant is used in the Manifest file to indicate the activity should be discovered as a launcher by the system. Ia3069
External Contribution
- Add
AugmentedImageModeto theConfigAPI I0cf09