ARCore SDK for Android v1.23.0
Breaking & behavioral changes
- AR-enabled apps built using ARCore SDK 1.11.0 or earlier are no longer able to host or resolve Cloud Anchors.
- C: Cloud Anchors returned by
ArSession_hostAndAcquireNewCloudAnchor
andArSession_resolveAndAcquireNewCloudAnchor
will always have the stateAR_CLOUD_ANCHOR_STATE_ERROR_INTERNAL
. - Java: Cloud Anchors returned by
Session#hostCloudAnchor(Anchor)
andSession#resolveCloudAnchor(java.lang.String)
will always have the stateAnchor.CloudAnchorState.ERROR_INTERNAL
. - Apps built with ARCore SDK 1.12.0 or later are unaffected. Their use of Cloud Anchors APIs is covered by the deprecation policy.
- C: Cloud Anchors returned by
New APIs and capabilities
- Developers can enable ARCore API call logging to the Android debug log by sending a broadcast intent.
- Developers can enable the ARCore performance overlay by sending a broadcast intent.
- Added new API for switching between rear-facing (world) and front-facing (selfie) camera configs within the current
Session
.
Deprecations
- The following session features are being deprecated:
- Java: Feature
FRONT_CAMERA
is deprecated. To create a session using the front-facing (selfie) camera, useSession.setCameraConfig(CameraConfig)
to set a front-facing(selfie) camera config retrieved fromSession.getSupportedCameraConfigs(CameraConfigFilter)
. - C: Feature
AR_SESSION_FEATURE_FRONT_CAMERA
is deprecated. To create a session using the front-facing (selfie) camera, useArSession_setCameraConfig
to set a front-facing(selfie) camera config retrieved fromArSession_getSupportedCameraConfigsWithFilter
.
- Java: Feature
Deletions
- The following deprecated APIs have been deleted:
Other changes
- Java: Updated hello_ar_java to use the cubemaps provided by Environmental HDR Lighting Estimation for specular reflections.
- Updated augmented_faces_java sample app to use the new
ArCameraConfigFilter_setFacingDirection()
API to create a session using the front-facing (selfie) camera instead of using theFRONT_CAMERA
Session feature, which has been deprecated. - Updated computer_vision_c sample app to use functions of 'ArImage' instead of functions of
AImage
to obtain image data, to avoid using previously deprecatedArImage_getNdkImage
.
Bug fixes
- Various bug fixes and performance improvements.