API Changes
HitResult.createAnchorwas removed. Developers can create an anchor representing theHitResultif the trackable of the result is anAnchorableby supplying the hit position to thecreateAnchorfunction of theAnchorable. Ia851eAnchorUnsupportedObjectwas removed. It is no longer thrown by a JXR ARCore runtime. Ia851eandroidx.xr.arcore.Anchorandandroidx.xr.arcore.ArDevicenow implementandroidx.xr.arcore.Trackable. I57b65Depth.left,Depth.right, andDepth.monoare now non-nullable I1fc5eFace.getUserFaceis now non-nullable I0eac1RenderViewpoint.left,RenderViewpoint.right,RenderViewpoint.monoare now non-nullable Icf7faHand.leftandHand.rightare non non-nullable Icef37- Added
QrCodeAPI Ia0bbe
API Changes
- Introduced
permitTransformDuringDeferredTransitionparameter toSharedContentConfigto control whether shared elements should visually transform with their parent container during the deferred phase of aDeferredTransition. I4b67b - Refactored Transition to a sealed class and improved
DeferredTransitionAPI documentation and safety. Iecb8f - Added
inactiveElementColortoLookaheadAnimationVisualDebugging" into androidx-main - Added
inactiveElementColortoLookaheadAnimationVisualDebuggingI5454b b/501193322 - Removed
ExperimentalAnimatableApiannotation. I4e670 b/500030165
Bug Fixes
- Fixed an issue in the
LinkComposerthat could cause composables to skip instead of recompose when invalidated during composition. Ie29fe
API Changes
- Renames test function for triggering indirect pointer events I3ee35 b/509618414
- Renamed
TextObfuscationMode.DefaulttoSystem.TextObfuscationMode.RevealLastTypednow acts as an absolute override and always reveals the last typed character. The default argument ofBasicSecureTextFieldis updated toSystem. If26d3 b/425658491 b/453647378 - Updated
getSpanStylesandgetParagraphStylesto take aTextRangeinstead of separate start/end indices. Relaxed bounds checking on style queries to no longer throw exceptions, and prevented crashes when querying properties of invalidatedTrackedRanges. I62a9a b/514404697 - Added Named Areas feature to Grid layout. Developers can now define semantic areas using
GridConfigurationScope.area()and place items into them using the newModifier.gridItem(area)overload, decoupling semantic intent from physical coordinates. Id9303 b/487503921 - Added then operators and combination factory functions for
FlexBoxConfigandFlexConfigto allow merging and overriding of layout configurations. Icfdd8 b/475491619 - Added
RevealState.drag(),SwipeToRevealDragScope, and exposed customflingBehaviorinSwipeToRevealto enable programmatic control over swipe gestures, offsets, and settling animations. Ibfe56 b/484185090
Bug Fixes
- Fixed an issue where the text selection toolbar might fail to update its position or items. Ib2566
External Contribution
- In
SelectionContainer, allow selection (via the mouse) to start in empty areas betweenTextselectables. I93f69 b/502151445 - Expose
AndroidClipboardinterface for testing to provide a way to mock clipboard implementation Ie4d72 b/512924975 - Add backwards compatibility for
TextAttributevariants ofcommitText()andsetComposingText(). For SDK>=37, accessibility services will be able to announce whether or not a suggestion replacement text is selected. For SDK<37, will not affect spoken feedback (i.e. existing behavior). I90e3d b/439879822
API Changes
- Added a public
snapAnimationSpecgetter toTopAppBarDefaultsto expose the default snap animation spec. Ic7b37 b/519193808 - Add shapes to internal and private methods of TimePicker.kt API I9d09e b/441573791
- Support shapes in
AnimatedPaneIe7c60 b/470517507 - Fix contrast of AM/PM toggle buttons for TimePicker Ifc0b7 b/339079853
- Graduate Expressive
FloatingToolbarAPIs to non-experimental. I5a4d8 b/497887216 - Remove deprecated
transformOriginStatefromDropdownMenuPopupPositionProvider. I0d5b0 b/505481611 - Updated
pinnedScrollBehaviorandenterAlwaysScrollBehaviorto accept aScrollableState, which automatically handles edge cases like reversed layouts and pre-scrolled content. Legacy overloads are deprecated. Migrate usages ofisScrollingContentAtStartto the new overloads withscrollableStateparam. PromotedTopAppBarScrollBehaviorand related APIs to stable. Ib83cf b/519193808 - Updated
pinnedScrollBehaviorandenterAlwaysScrollBehaviorto accept aScrollableState, which automatically handles edge cases like reversed layouts and pre-scrolled content. PromotedTopAppBarScrollBehaviorand related APIs to stable. Ieda4b b/405129274 - Update
DropdownMenuPositionProviderto removeMutableStatefromtransformOrigin. CollapseMenuAnchorPositionfrom a sealed interface into a single class. IntroducesMenuAnchorPositionScopethat contains information that can be used to create custom x and y candidates. I21f2b b/505481611 - Promote
ButtonGroupAPIs to stable. Remove deprecated experimental APIs that were introduced in a 1.5.0-alpha. Idaf96 b/497876828
Bug Fixes
- Fixed a bug where
ButtonGroup's compression animation did not correctly handle asymmetric button paddings or RTL layout directions, and could crash withIllegalArgumentExceptionunder certain display densities. I35074 b/516743181 - Fix TimePicker text input mode error handling mechanism If4541 b/405054265
Bug Fixes
- Fixed an issue where snapshot apply observers were not notified if a state object was created in one snapshot and then modified in a concurrent snapshot before the first one was applied. Ide27f b/451479063
- Fixed a potential memory leak in how
derivedStateOf()values are tracked in composition. Forward writes to objects read by a derived state caused thederivedStateOf()instance to be retained by the composition until the composition is disposed. If thederivedStateOf()is not remembered correctly this leak can be significant as each composition may create a new one. Ib5d87 b/516904513 - Fixed an issue in the
LinkComposerthat could cause composables to skip instead of recompose when invalidated during composition. Ie29fe - Fixed an issue with the vararg overload of
rememberthat would prevent the remembered value from being invalidated and cause an incorrect value to be returned from remember. This occurred whenrememberis recomposed with fewer keys that are the same as the previous keys minus elements from the end of the array. Affected code must be recompiled to receive this fix. I0736b
External Contribution
- Added verbose tracing for
DisposableEffectandSideEffectwork in Compose runtime. Ie451f
API Changes
- N/A (moving internal developer feature flag) Iaf2c4 b/368702588
- N/A - Moved a feature flag. I24668 b/521811270
- Added experimental feature flag
ComposeUiFlags.isTrackpadPinchReinterpretationEnabledto re-interpret trackpad pinch gestures as mouse events with scale factors. Id3477 b/478053727 - Renames test function for triggering indirect pointer events I3ee35 b/509618414
- Add optimisation to the
BasicTextandBasicTextFieldwhere setting a line height for a text with softwrap=false is now calculating more optimally I2150a
Bug Fixes
- Optimized scroll capture state propagation across subcompositions to prevent unnecessary UI recomposition. I05830
- Enabled experimental feature flag
ComposeUiFlags.isTrackpadPinchReinterpretationEnabledby default. I35ab8 b/478053727 - Fixed an issue in vector drawable resource parsing where parent
<clip-path>elements were ignored if they contained nested<group>elements. Id4ea9 b/474530439 - Added support for standard JUnit 4 test retry rules in
AndroidComposeTestRuleby regenerating the internal test environment and coroutine scope between execution attempts. Iafaa7 b/235383900
External Contribution
- Expose
AndroidClipboardinterface for testing to provide a way to mock clipboard implementation Ie4d72 b/512924975 - Add backwards compatibility for
TextAttributevariants ofcommitText()andsetComposingText(). For SDK>=37, accessibility services will be able to announce whether or not a suggestion replacement text is selected. For SDK<37, will not affect spoken feedback (i.e. existing behavior). I90e3d b/439879822
New Features
The initial alpha release of AndroidX implementations of LocationButton that enable both view and compose based applications to easily request one-time precise location permission. For devices running Android 16 (API 36) or below, the library provides automatic backwards compatibility by defaulting to standard location permission prompts.
API Changes
- Added
LocationButtonView as an entry point for View based applications. - Added
LocationButtoncomposable as an entrypoint for Compose based applications. - Added
OnPermissionResultListener,OnErrorListener, andOnRequestPermissionsListenerfor callback handling. - Added
TestLocationButtonProviderto allow apps to test flows relying on the secureLocationButton.
Major features of 1.0.0:
Bug Fixes
- Moves libraries to use Java 11 target. This means produced bytecode will be Java 11 (class file version 55) and might require desugaring to use the library If4c2a b/457821470
- Add ViewBoundsTracker class to continuously track the view bounds for setting sourceRectHint in PictureInPictureParamsCompat Id203a b/474454111
- Add PictureInPictureParamsValidator class to validate the app provided PictureInPictureParamsCompat I89b4d b/470149490
- Add the Pixel Dec release to the list of fixed build fingerprints in KI_398591036 I65f51 b/398591036
- Add the Pixel Nov release to the list of fixed build fingerprints in KI_398591036 I60c10 b/398591036
- Add the Pixel Oct release to the list of fixed build fingerprints in KI_398591036 I6438c b/398591036
- Removed references to FingerprintManager class from FingerprintManagerCompat and updated all methods to return false or no-op. I0360b b/330524057
- Fix the code links in documentation for KI_452390376 I9a554 b/454020407
- Mark specifig pixel builds as fixed. I4c751 b/398591036
- Add support for specifying a list of manually tested build fingerprints for a KnownIssue. Iea9f9 b/453691379
API Changes
- Remove the
ExperimentalAppActionsannotation from stable extensions I25ab2 b/501448256
Bug Fixes
- Fix video calls route to earpiece instead of speaker bug when using the backwards compat path on sdk=34+ I9f2bd b/519599698
- Fixed an issue where incoming audio-only
VoIPcalls were incorrectly treated as video calls by the platform, causing them to route to the speakerphone instead of the earpiece I95902 b/517616475 - Fixed a bug in Core-Telecom where an intentional user switch to speakerphone during call initialization would be incorrectly reverted to the earpiece. I9e251 b/478022476
- Fixed an issue where redundant audio state updates in core-telecom could lead to main thread congestion and potential ANRs. Ibd794 b/491873537
- Fix NPE in
BlueoothProfileListener#onServiceConnectedIdbd57 b/513341034 - Fixed a test failure in CallSessionTest on Android 17 (SDK 37) by suppressing version-specific bug mitigation tests on unaffected platform versions. I970a7 b/502732317
API Changes
- Fragment now implements the
ContextAwareinterface and can be used to execute code when the fragment is attached. I38019 b/477255355
Bug Fixes
- Fixed a crash in Fragment that was caused when the Activity is sent to the background during a predictive back gesture. I55734 b/389589678
- UnsafeFragmentLifecycleObserverDetector no longer runs within composition. Ic4176 b/501504696
- [From Fragment 1.8.9] Fixed an issue where cancelling a predictive back gesture that pops a hide operation will cause the subsequent gesture not to animate correctly when using animators. I0a400 b/384765586
- [From Fragment 1.8.9] Fixed an error where a combination of setMaxLifecycle and popBackStack could fail to move the top fragment to RESUMED. I3448b b/406127576
- [From Fragment 1.8.8] Fixed an issue where FragmentManager would crash while trying to save the state of Fragments that were added with
setMaxLifecycle(Lifecycle.State.INITIALIZED). These fragments, since they never when throughonCreate(), no longer have any state saved oronSaveInstanceState()called. I6e37a b/408163315 - [From Fragment 1.8.7] Fixed an issue with FragmentManager no being in the proper state after pop and replace operations in the same frame that could cause a crash in conjunction with predictive back. I50ad1 b/380288461
- [From Fragment 1.8.6] FragmentContainerView's
setOnApplyWindowInsetsListeneroverride now takes a null listener. I575f0 b/282790626 - [From Fragment 1.8.5] Fixed an
IllegalStateExceptiontriggered bysaveBackStackonly after a Predictive Back gesture was cancelled or interrupted. I3387d b/342419080 - [From Fragment 1.8.4] Fixed an
UninitializedPropertyAccessExceptioninAndroidFragmentwhen dynamically swapping out the Class yourAndroidFragmentinstance is using. I12dea b/365578408 - [From Fragment 1.8.4] Fixed an issue where quickly pressing system back or doing fast gesture back will cause Fragments to crash. Ibc038 b/364804225 b/364914301
- [From Fragment 1.8.4] Fixed an issue in fragments where interrupting a predictive back gesture would send the fragment manager into an undefined state and even up showing the wrong fragment. If82e2 b/338624457
- [From Fragment 1.8.3]
AndroidFragmentno longer crashes if it is added to composition while the containing activity/fragment's state is already saved. I985e9 b/356643968 - [From Fragment 1.8.2] Triggering a system back while the FragmentManager has pending operations will no longer cause an out of bound exception. I9ba32 b/342316801
- [From Fragment 1.8.2]
AndroidFragmentnow properly handles cases where the parent fragment is put on the Fragment back stack, avoiding 'No view found for id' issues when popping back to that fragment. I94608 b/347706985 - [From Fragment 1.8.2] Fragments added via the
FragmentTransaction.addmethod that takes aViewGroupnow wait foronContainerAvailablebefore progressing toonStart(). This affects users of that API, such asAndroidFragment, which now waits for theAndroidFragmentto re-enter composition before moving it throughonStart(). I94608 b/347706985 - [From Fragment 1.8.1] Fixed an issue where fragment without a container were immediately DESTROYED when starting a predictive back gesture. If6b83 b/345244539
External Contribution
- Merge fragment-ktx into the fragment library. All Kotlin extensions are now part of the main fragment artifact. fragment-ktx is now an empty artifact for compatibility. Thank you Jake Wharton! Idabaa
New features
Added
AssociateWithGlanceWearWidgetthat must be used on theGlanceWearWidgetServiceto provide which implementation ofGlanceWearWidgetit is associated to. Ifcabb b/514679763- For example:
@AssociateWithGlanceWearWidget(MyGlanceWearWidget::class) class MyGlanceWearWidgetService : GlanceWearWidgetService() { override val widget = MyGlanceWearWidget() } ```We have added
imagebrush toWearWidgetBrushto support bitmap backgrounds in Wear Widgets. I9a228 b/513481558We have introduced a
@Composablehelper function,WearWidgetPreview, to simplify the development of Glance Wear widgets by removing the boilerplate required for IDE previews.
API Changes
- Renamed
androidx.glance.wear.health.DataTypetoandroidx.glance.wear.health.HealthDataI4cb0b b/516746689 isHeartRateBpmAvailableis exposed to determine ifheartRateBpmis available on the host. I5999d b/514641567- Exposed
RemoteIntcompare operators. I5fe3d b/513228889 - Exposed
captureRemoteDocumentFlow API and a newcaptureSingleRemoteDocumentoverload (which takesRemoteCreationDisplayInfo) as public APIs. I87b0e b/513228889 - We have added
@CallSupertoGlanceWearWidgetServicelifecycle methods
API Changes
Fix floating point precision issues leading to visual artifacts in finished strokes, affecting certain devices after OS upgrades
Add KMP-common API for storage module (going to/from
ByteArrayinstead of JavaInputStream/OutputStream).Add a
BrushBehavior.developerCommentproperty to hold metadata explaining a custom brush family's design. This is intended to support Brush Designer UI.Fix a bug in threading consistency checks in
CanvasInProgressStrokesRenderHelperV33.Fix some bugs in handling of
MotionEventoptional fields (e.g. tilt, pressure).Improve documentation for custom brush API.
Add new
BrushPaint.ColorFunctiontypes.
API Changes
- Deprecated
ResizePolicyand the old resizable modifier, replacing it with a newSubspaceModifier.resizableoverload andSubspaceModifier.transformingResizable. I9e4bc - Updated
SpatialGltfModelAPIs: Added support for loading models from resources viaSpatialGltfModelSource.fromResource. Renamed speed toplaybackSpeedinSpatialGltfModelAnimationand added a resume() method.SpatialGltfModelStatus.Loaded and Loading are now objects. I523de - Marked
rotateToLookAtUseras an experimental API. I86c16 - Moved and renamed protected variable
targetCurrentPoseto local variablecurrentTargetPoseMeter. Ia557c - Update
SpatialPanelandSpatialExternalSurfacekdocs to include where the object is rendered within its layout size I72104 - Encapsulated
SpatialGltfModelloading logic withinSpatialGltfModelStateand clarified failure behavior. Ibe98b - Clarified
depthinSubspaceModifer.sizekdocs I0f84f
API Changes
- Added overloads for
addVertexData,setIndexData, andaddSubsettoCustomMesh.BuilderFromMeshDataandCustomMesh.BuilderFromMeshBuffer. These overloads allow developers to pass raw data and parameters directly (e.g.,ByteBuffer,offset,size,topology,indexOffset,indexCount) without needing to wrap them in intermediary objects likeByteBufferRegionorMeshSubset. I84d5c Scene.requestFullSpaceMode()andScene.requestHomeSpaceMode()have been renamed torequestFullSpace()andrequestHomeSpace(), respectively. Other methods and documentation referring to "Home Space Mode" and "Full Space Mode" have been similarly updated. I45751- Provides public test API
PanelEntityTesterandMainPanelEntityTesterI961e4 - Adding
pointSourceParamsproperty toSoundEffectPoolComponentI4a750 - Provides public test API
MovableComponentTesterI0c972 - Provides public test API
PointerCaptureComponentTesterIc0d4f - Provides public test API
ActivityPanelEntityTesterI837c4 - Provides public test API
ResizableComponentTesterI0a3a4 - Provides public test API
BoundsComponentTester.Iefd53 - Provides public test API
SpatialMediaPlayerTesterIa3e09 - Provides public test API
SpatialEnvironmentTesterIcf60f - Provides public test API
GltfModelTesterandSceneCoreTestRule.getGltfModelTester. I33fcb - Provides public test API
InteractableComponentTester. Ia7096 - Provides public test API
SurfaceEntityTester. Ic0740 - Provides public test API
GltfModelEntityTester,TestGltfModelNodeandTestGltfAnimation. I72c4d - Provides public test API
SceneTesterandSceneCoreTestRule.sceneTester. Ib4ec5 - Provides public test API
PerceptionSpaceTesterandSceneCoreTestRule.perceptionSpaceTester. Icf739 - Provides public test API
MeshEntityTester. I63801 - Provides public test API
ImageBasedLightingAssetTesterandSceneCoreTestRule.getTesteroverloads. I57ec4 - Provides public test API
TextureTesterIa865b - Provides public test API
PositionalAudioComponentTesterIcd96e - Provides public test API
SpatialSoundPoolTesterIa3531 - Provides public test API
SoundEffectPoolTesterIf349a - Provides public test API
ActivitySpaceTesterandSceneCoreTestRule.activitySpaceTester. I2d5c2 - Provides public test API
SpatialWindowTesterI41837 - Provides public test API
AnchorEntityTesterI68404 - Provides the public test API interface
SceneCoreTestRule. Ic72d3 - Added
PixelDensityclass and exposed it viaScene#virtualPixelDensityto provide a hardware-based pixel-per-meter ratio for accurate physical dimension mapping inActivitySpace. I0e3ac - Added public APIs for creating and rendering Custom Meshes. I7ad2f
- The
VertexLayoutAPI has been updated to use a list ofVertexBufferLayouts, where eachVertexBufferLayoutdescribes the attributes within a single vertex buffer. This allows for more flexible vertex data arrangements, including interleaved attributes with custom strides and offsets. Ic426b - Provides
MovableComponent.createTrackingMovableto transform an ARCore Trackable to a pose relative to Activity Space. I12249 - The default value for the parent in
Entity.createhas been updated to null. Ic3145 Entitywas updated to be a class instead of an interface and is now the base class for all Entity types. As part of this changeBaseEntitywas removed. I7fbc9GltfModel,ExrImage, andImageBasedLightingAssetnow implementAutoCloseableto allow for idiomatic resource management using Kotlin'suseblock. I1ac79- Introduced the
ImageBasedLightingAssetclass to replaceExrImagefor defining spatial environment lighting.ExrImagehas been deprecated and removed from the public API.SpatialEnvironmentPreferencehas been updated to useImageBasedLightingAsset. I6c92a - Renamed the
skyboxparameter inSpatialEnvironmenttoimageBasedLightingAssetto better reflect its purpose, and clarified that visual skybox textures should be included in the geometry parameter. I24d4a - Spatial entities now use a stable device density for pixel-to-meter calculations on Spatial API levels 1 and 2, ensuring consistent sizing regardless of system display density changes. I37051
Important changes since 2.10.0:
Scoped ViewModels in Compose - Introduction of ViewModelStoreProvider, rememberViewModelStoreProvider, and rememberViewModelStoreOwner to tie ViewModels to specific UI scopes (like Pager pages). These survive configuration changes and automatically clear when the Composable is removed from the hierarchy.
KMP Support - ViewModel-Compose and ViewModel-Navigation3 now support all Kotlin Multiplatform targets.
Navigation3 Integration - ViewModelStoreNavEntryDecorator now accepts a ViewModelStoreOwner to propagate CreationExtras and factories to nested ViewModels. You can also hoist providers using the new rememberViewModelStoreNavEntryDecorator overload to support multiple back stacks. removeViewModelStoreOnPop is deprecated.
Lifecycle Utilities - Added a reified ViewModelProvider.get<VM>(key) extension, a lambda-based Lifecycle.addObserver, and default factory extensions for ViewModelStoreOwner. ViewModel.onCleared is now annotated with @EmptySuper.
Other Changes - Compose UI 1.7.0+ is now required for LocalLifecycleOwner to remove reflection fallbacks. Updates to the Compose compileSdk require a minimum AGP version of 9.2.0.
Major features of 1.0.0:
lint-gradle ships the following checks to help Gradle plugin authors:
- Eager configuration check to defer creating and configuring objects until they are needed
- Project Isolation violations check
- Likely bugs check for calling
Provider.toString - Performance check that flags calls to APIs that are unexpectedly expensive
- Overly broad configuration cache inputs check
- Check to discourage usage of
Property<File> - Internal Gradle, Android Gradle Plugin and Kotlin Gradle plugin API usage check
- Call to
withTypewithout.configureEachcheck - Usage of
GradleRunner.withPluginClasspathcheck
Bug Fixes
Fixed overlay animation issue where nested overlays such as
ModalBottomSheetare re-aniamting unexpectedly when the overlays above it are popped. Ia2b9e b/502624496Bumped
NavigationEventdependency to 1.1.2 which removed the no-opNavigationEventHandlerwhen in inspection mode to enable Predictive Back in Android Studio Previews.
Bug Fixes
- Update Compose dependencies to version 1.11.2. a5e9259
API Changes
- Rename
RemoteBitmaptoRemoteImageBitmapto improve naming consistency. I4fde1 b/513228889 - Rename
RemoteBitmapShadertoRemoteImageBrushand expose to public API. I7adaf b/513228889 - Expose
RemoteIntcompare operators. I5fe3d b/513228889 - Exposed
captureRemoteDocumentFlow API and a newcaptureSingleRemoteDocumentoverload (which takesRemoteCreationDisplayInfo) as public APIs. I87b0e b/513228889 - Rename comparison operators (eq, ne) on
RemoteBooleantoisEqualTo,isNotEqualTo. Ia05b9 b/513228889 - Expose
RemoteEnumandRemoteStateLayoutas public APIs I5c6ec - Exposed
fontVariationSettingsproperty in theRemotePaintinterface as public API. Ic3c46 b/513228889 - Remove
RemoteIntandRemoteFloattoRemoteStringmethods. I62a6b b/513228889 - Exposed
RemoteTypefaceAPI. Iadfdb b/502907551 - Renamed existing
ValueChangefactory functions to lowercasevalueChange. I812b9 b/513228889 - Made
PendingIntentActionsafe for IDE previews by deferringPendingIntentaccess via a lambda and returning a no-op action in preview mode. I43b37 b/512403924
Bug Fixes
- Introduce
TypefaceResolverandDefaultTypefaceResolverinternal abstractions to modularize font resolution. Ia1df7 b/513228889 - Removed obsolete
RemoteIntReferenceandRemoteStringListAPIs, and addedRemoteStringArrayto support arrays of remote strings. I12931 - Propagate
LocalInspectionModeto Remote Compose capture phase I6a56b b/512403924
New Features
- Added support for parameters with default values in data classes used in DAO query results. A property that represents a column and is part of a constructor with a default value will be considered optional and a column in the result won't be required for it. 34279a b/70762008 b/193531601
API Changes
- Rename
@TypeConverterto@ColumnTypeConverterto better distinguish the scope of the conversion and to have symmetry with@DaoReturnTypeConverter. I24420 b/438041176 - Added an API for provided custom DAO return types
@ProvidedDaoReturnTypeConveter. I2a8ad b/517485682 - Added the
PrimaryKey.algorihtmproperty to specify the primary key generating algorithm whenPrimaryKey.autoGenerateis set to true. I57944 b/70053837
No significant changes since version 2.7.0-alpha06.
API Changes
- Update
containerPaintermethod to takeRemoteImageBitmapinstead I68a92 b/494562308 - Rename
RemoteBitmaptoRemoteImageBitmapto improve naming consistency. I4fde1 b/513228889 - Exposed
captureRemoteDocumentFlow API and a newcaptureSingleRemoteDocumentoverload (which takesRemoteCreationDisplayInfo) as public APIs. I87b0e b/513228889 - Renamed existing
ValueChangefactory functions to lowercasevalueChange. I812b9 b/513228889
New Features
- Added new APIs:
getDownloadFaviconsEnabledandsetDownloadFaviconsEnabled. These APIs will allow you to control whether Favicons will be downloaded automatically. If9224 b/510229667
API Changes
- Update the
prefetchUrlAsyncAPI that acceptsPrefetchResultas a callback type to report users if there is a duplicate prefetch request. Icc796 b/483041824 ExpectedNoVarySearchDatais deprecated and updated toExpectedNoVarySearchHint.ignoredQueryParametersandconsideredQueryParametersare made immutable lists. I7bb8c b/491718321
Bug Fixes
- Corrected
RequiresFeatureannotations onProcessGlobalConfigto referenceisStartupFeatureSupportedinstead of the incorrectisConfigFeatureSupported. I6370b
API Changes
- Add new
EngagementMode.PRECISE_POINTERAPI inWindowEngagementInfoI7e4d7 b/474545085 - Deprecated
WindowLayoutInfo.engagementModes. Use the newWindowInfoTracker.windowEngagementInfo()method to observe engagement mode changes. I500d1 b/491562425
API Changes
- Added test API for
isProjectedServiceAvailable()I44ba1 - Exposed
DeviceTrackingMode.INERTIALas a public experimental API under the new@ExperimentalInertialTrackingApiannotation. Ic3df3 - Added
Config.Builder. Apps can create custom configurations by calling setter functions on the builder object and then callingBuilder.build. I13142 androidx.xr.runtime.FieldOfViewhas been removed. Apps should useandroidx.xr.runtime.math.FieldOfViewinstead. I621efSession.createis now required to be ran on a@WorkerThread. I2169e- Added
isProjectedServiceAvailable()to theXrDeviceI507e9 - Renaming
DeviceTrackingMode.SPATIAL_LAST_KNOWNtoDeviceTrackingMode.SPATIALandDeviceTrackingMode.INERTIAL_LAST_KNOWNtoDeviceTrackingMode.INERTIALI96f8b Vector3.angleBetweenandVector4.angleBetweennow return degrees rather than radians. Ica8bc- Added
QrCodeAPI Ia0bbe