# frame_surface

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-apple/function-frame_surface/

**function** · [`ferroui-media-apple`](/docs/0.5.0/api/ferroui-media-apple/) · v0.5.0

```rust
fn frame_surface(frame: &FrameLease) -> Result<std::rc::Rc<dyn IPlatformHandle>, MediaError>
```

Returns an owning import handle; it keeps the decoder allocation leased even
if the source is replaced while the compositor import job is still queued.

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

## Availability

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