/// <summary> /// Constructs an enumerable from an <c>XRCameraSubsystem</c> /// </summary> /// <param name="api">The <see cref="ICameraConfigApi"/> required to enumerate the supported configurations.</param> public CameraConfigurationCollection(ICameraConfigApi api) { if (api == null) { throw new ArgumentNullException("api"); } m_CameraConfigApi = api; }
/// <summary> /// Constructs an enumerator from an <c>XRCameraSubsystem</c> /// </summary> /// <param name="api">The <see cref="ICameraConfigApi"/> required to enumerate the supported configurations.</param> public ConfigEnumerator(ICameraConfigApi api) { if (api == null) { throw new ArgumentNullException("api"); } m_CameraConfigApi = api; m_Index = -1; m_Count = m_CameraConfigApi.GetConfigurationCount(); }
/// <summary> /// Allows a camera provider to register support for <see cref="ICameraConfigApi"/>. /// This is typically only used by platform-specific packages. /// </summary> /// <param name="subsystemId">The string name associated with the camera provider to extend.</param> /// <param name="api">The API to use to perform provider-specific calls.</param> public static void RegisterCameraConfigApi(string subsystemId, ICameraConfigApi api) { s_CameraConfigApis[subsystemId] = api; }