# get_floating_resource_observable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/controls/function-get_floating_resource_observable/

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

```rust
fn get_floating_resource_observable(resource_provider: std::rc::Rc<dyn IResourceProvider>, key: impl Into<super::ResourceKey>, default_theme_variant: Option<crate::styling::ThemeVariant>, converter: Option<ResourceConverter>) -> std::rc::Rc<dyn IObservable<Option<crate::BoxedValue>>>
```

Gets an observable for the resource with the specified key as seen by the
owner of a resource provider.

The observable produces a value whenever the provider has an owner and the
resources visible to that owner, the owner itself or (unless
`default_theme_variant` is given) its theme variant change.

While it has observers the observable and the provider keep each other
alive; dispose the subscriptions to release them.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/controls/resource_node_extensions.rs#L85)

## Availability

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