# XRSpatialSdkExtensions

Helper class for the usage of [XRSpatialSdkVersions](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrspatialsdkversions).

## Summary

| ### Public static functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRSpatialSdkExtensions#getdisplayoption(this https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrspatialsdkversions version)` | `string` Gets display option of the given version for GUI content. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRSpatialSdkExtensions#validateactivefeatures(this https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrspatialsdkversions targetVersion, ref https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#xrspatialsdkversions minVersion, ref List< string > featureNames)` | `bool` Validate the given version if it meets all feature requirements which have been enabled on Android platform. |

## Public static functions

### GetDisplayOption

```c#
string GetDisplayOption(
  this XRSpatialSdkVersions version
)
```
Gets display option of the given version for GUI content.


Details Parameters `version` The given version. **Returns** The display option.

### ValidateActiveFeatures

```c#
bool ValidateActiveFeatures(
  this XRSpatialSdkVersions targetVersion,
  ref XRSpatialSdkVersions minVersion,
  ref List< string > featureNames
)
```
Validate the given version if it meets all feature requirements which have been enabled on Android platform.


Details Parameters `targetVersion` The target version. `minVersion` The minimal required version based on all enabled features. `featureNames` The names of all features that requires *minVersion* . **Returns** True if the target version meets feature requirements. Otherwise, return false.