# BrowserAppBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-browser/trait-browserappbuilder/

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

```rust
trait BrowserAppBuilder
```

Starts an application in a web page.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L204)

## Members

- [`start_browser_app`](#function-start_browser_app)
- [`setup_browser_app`](#function-setup_browser_app)
- [`use_browser`](#function-use_browser)

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

### start_browser_app

```rust
fn start_browser_app(self: &Self, main_div_id: &str, options: Option<BrowserPlatformOptions>)
```

Configures browser backend and creates a single view lifetime from
the passed `main_div_id` parameter.

`main_div_id` is the ID of the html element where the content should
be rendered. The function returns once the application is set up;
the page drives it from then on.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L211)

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

### setup_browser_app

```rust
fn setup_browser_app(self: &Self, options: Option<BrowserPlatformOptions>)
```

Configures browser backend.

This method doesn't create any views to be rendered. To do so create
a `FerroView` object. Alternatively, you can call
`start_browser_app` instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L218)

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

### use_browser

```rust
fn use_browser(self: &Self) -> AppBuilder
```

Selects the subsystems of the browser: its runtime platform and
windowing subsystem, the enabled renderer and HarfBuzz for text
shaping.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_app_builder.rs#L223)

## Trait implementations

- [`BrowserAppBuilder`](/docs/0.5.0/api/ferroui-browser/trait-browserappbuilder/)

## Availability

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