# CameraProviderFactory

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-camera-controls/type_alias-cameraproviderfactory/

**type alias** · [`ferroui-media-camera-controls`](/docs/0.5.0/api/ferroui-media-camera-controls/) · v0.5.0

```rust
type CameraProviderFactory = dyn Fn(&dyn ICompositionGpuInterop) -> Result<(std::rc::Rc<dyn CameraProvider>, std::rc::Rc<dyn TextureFrameImporter>), CameraError>
```

Recreates a camera provider/importer for the restored compositor. Capture
the original shared frame budget when the native producer needs it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Camera.Controls/lib.rs#L35)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
