XRSpatialSdkExtensions

Helper class for the usage of XRSpatialSdkVersions.

Summary

Public static functions

GetDisplayOption(this XRSpatialSdkVersions version)
string
Gets display option of the given version for GUI content.
ValidateActiveFeatures(this XRSpatialSdkVersions targetVersion, ref 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

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

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.