SampleDebugUtils

Utilities to debug Android XR samples.

Summary

Public static functions

CheckFeatureAvailability(OpenXRFeature feature, bool? isExtensionEnabled, StringBuilder stringBuilder)
bool
Check whether the given feature is available to use based on its extension status.
CheckSubsystemReady(Type targetType, SubsystemWithProvider subsystem, StringBuilder stringBuilder)
bool
Check if the given subsystem is running.

Public static functions

CheckFeatureAvailability

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

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.