# SampleDebugUtils

Utilities to debug Android XR samples.

## Summary

| ### Public static functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/SampleDebugUtils#checkfeatureavailability(OpenXRFeature feature, bool? isExtensionEnabled, StringBuilder stringBuilder)` | `bool` Check whether the given feature is available to use based on its extension status. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/SampleDebugUtils#checksubsystemready(Type targetType, SubsystemWithProvider subsystem, StringBuilder stringBuilder)` | `bool` Check if the given subsystem is running. |

## Public static functions

### CheckFeatureAvailability

```c#
bool CheckFeatureAvailability(
  OpenXRFeature feature,
  bool? isExtensionEnabled,
  StringBuilder stringBuilder
)
```
Check whether the given feature is available to use based on its extension status.


Details Parameters `feature` The OpenXRFeature instance. `isExtensionEnabled` The nullable property that represents extensions status at runtime. `stringBuilder` The optional string builder to append debug information. **Returns** True if the feature is ready to use.

### CheckSubsystemReady

```c#
bool CheckSubsystemReady(
  Type targetType,
  SubsystemWithProvider subsystem,
  StringBuilder stringBuilder
)
```
Check if the given subsystem is running.


Details Parameters `targetType` The target type of a SubsystemWithProvider. `subsystem` The nullable SubsystemLifecycleManager.subsystem property. `stringBuilder` The optional string builder to append debug information. **Returns** True if the subsystem is ready to use.