**The changes outlined in this document are only applicable to apps compiled with ARCore SDK version 1.31 or higher. Apps compiled with an older version of ARCore will not be affected.**

As part of the May 2022 1.31 release, the maximum range of ARCore's depth has been upgraded from 8.191 meters to 65.535 meters. The [Depth API](https://developers.google.com/ar/develop/depth) now uses all 16 bits per pixel to represent depth, where previously only 13 bits were used for depth values. Though apps using the following methods in older ARCore SDKs will still work using the previous depth range, we recommend updating them in your codebase for better functionality.

## Platform-specific changes

### Android (Kotlin/Java)

| Previous method names and functionality | New method names and functionality |
|---|---|
| Max range of 8.191 meters | Max range of 65.535 meters |
| `https://developers.google.com/ar/reference/java/com/google/ar/core/Frame#acquireDepthImage-` | `https://developers.google.com/ar/reference/java/com/google/ar/core/Frame#acquireDepthImage16Bits-` |
| `https://developers.google.com/ar/reference/java/com/google/ar/core/Frame#acquireRawDepthImage-` | `https://developers.google.com/ar/reference/java/com/google/ar/core/Frame#acquireRawDepthImage16Bits-` |
| `https://developer.android.com/reference/android/media/Image#getFormat()` returns `https://developer.android.com/reference/android/graphics/ImageFormat#DEPTH16` | `https://developer.android.com/reference/android/media/Image#getFormat()` returns `https://developer.android.com/reference/android/hardware/HardwareBuffer#D_16` |

### Android NDK (C)

| Previous method names and functionality | New method names and functionality |
|---|---|
| Max range of 8.191 meters | Max range of 65.535 meters |
| `https://developers.google.com/ar/reference/c/group/ar-frame#arframe_acquiredepthimage` | `https://developers.google.com/ar/reference/c/group/ar-frame#arframe_acquiredepthimage16bits` |
| `https://developers.google.com/ar/reference/c/group/ar-frame#arframe_acquirerawdepthimage` | `https://developers.google.com/ar/reference/c/group/ar-frame#arframe_acquirerawdepthimage16bits` |
| `https://developers.google.com/ar/reference/c/group/ar-image#arimage_getformat` returns `AR_IMAGE_FORMAT_DEPTH16` | `https://developers.google.com/ar/reference/c/group/ar-image#arimage_getformat` returns `AR_IMAGE_FORMAT_D_16` |

### Unity (AR Foundation)

All changes are handled by AR Foundation. When building with ARCore Extensions for AR Foundation version 1.31 or later, [`AROcclusionManager.TryAcquireEnvironmentDepthCpuImage`](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.AROcclusionManager.html#UnityEngine_XR_ARFoundation_AROcclusionManager_TryAcquireEnvironmentDepthCpuImage_UnityEngine_XR_ARSubsystems_XRCpuImage__) returns images using the new maximum range of 65.535 meters.