# ILauncher

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/storage/trait-ilauncher/

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

```rust
trait ILauncher
```

Starts the default app associated with the specified file or URI.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_launcher.rs#L7)

## Members

- [`launch_uri_async`](#function-launch_uri_async)
- [`launch_file_async`](#function-launch_file_async)

<a id="function-launch_uri_async"></a>

### launch_uri_async

```rust
fn launch_uri_async(self: &Self, uri: &Url) -> LocalBoxFuture<bool>
```

Starts the default app associated with the URI scheme name for the
specified URI.

The URI is absolute (a `Url`): a relative reference names nothing
to launch, so it is resolved, or refused, before it gets here.

Resolves to `true` if the operation was successful, `false`
otherwise.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_launcher.rs#L16)

<a id="function-launch_file_async"></a>

### launch_file_async

```rust
fn launch_file_async(self: &Self, storage_item: Rc<dyn IStorageItem>) -> LocalBoxFuture<bool>
```

Starts the default app associated with the specified storage file or
folder.

Resolves to `true` if the operation was successful, `false`
otherwise.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/i_launcher.rs#L23)

## Trait implementations

- [`ILauncher`](/docs/0.5.0/api/ferroui-base/platform/storage/trait-ilauncher/)

## Availability

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