# ISingleViewApplicationLifetime

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/application_lifetimes/trait-isingleviewapplicationlifetime/

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

```rust
trait ISingleViewApplicationLifetime: IApplicationLifetime
```

The lifetime of an application that shows a single view (mobile, browser
and embedded platforms).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/i_single_view_application_lifetime.rs#L7)

## Members

- [`main_view`](#function-main_view)
- [`set_main_view`](#function-set_main_view)

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

### main_view

```rust
fn main_view(self: &Self) -> Option<Ref<Control>>
```

The main view of the application.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/i_single_view_application_lifetime.rs#L9)

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

### set_main_view

```rust
fn set_main_view(self: &Self, value: Option<Ref<Control>>)
```

Sets the main view of the application.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/i_single_view_application_lifetime.rs#L12)

## Availability

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