ARCore SDK for Android v1.33.0
Breaking & behavioral changes
- To use Cloud Anchors, you must now enable the ARCore API instead of the older ARCore Cloud Anchor API, which is now deprecated. To support older app versions, you may enable both while making the transition. Apps built with ARCore SDK 1.32.0 and lower will target the older API, while apps built with ARCore SDK 1.33.0 and higher will target the new API. Note the following:
- The new API uses the domain name
arcore.googleapis.com
instead ofarcorecloudanchor.googleapis.com
. - If you are using an API Key which is restricted by API, you must allow the ARCore API.
- If you send requests to the ARCore Cloud Anchor Management API from your backend, you must also change the domain name to
arcore.googleapis.com
, after enabling the ARCore API. - The old API/endpoint will continue to be supported through August 2023.
- See ARCore 1.33 Cloud Anchor endpoint changes for more details.
- The new API uses the domain name
ArImage
has been removed. Useandroid.media.Image
instead.targetSdkVersion
inside the ARCore aar has been updated to API level 33. Specifying atargetSdkVersion
in your project'sbuild.gradle
orAndroidManifest.xml
will override the ARCore value.
New APIs and capabilities
ARCore Geospatial Terrain anchor API - new
The new ARCore Geospatial Terrain anchor API can create an anchor at a specified horizontal position and altitude relative to the horizontal position's terrain.
-
Kotlin/Java reference
Earth.resolveAnchorOnTerrain()
creates a newAnchor
at the specified latitude, longitude, altitude above the terrain and orientation.Anchor.TerrainAnchorState
describes the current Terrain anchor state ofAnchor
.
-
C reference
ArEarth_resolveAndAcquireNewAnchorOnTerrain()
creates a newAnchor
at the specified latitude, longitude, altitude above the terrain and orientation.ArTerrainAnchorState
describes the current Terrain anchor state ofArAnchor
.
Other changes
- Updated Java and native sample apps to
targetSdkVersion
33.