# MaterialBottomSheetHost

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/struct-materialbottomsheethost/

**struct** · [`ferroui-themes-material`](/docs/0.5.0/api/ferroui-themes-material/) · v0.5.0

```rust
struct MaterialBottomSheetHost
```

A modal sheet placed as the last child of the application's overlay `Grid`.
Its `Content` is the sheet body. `State` is the requested semantic state;
`Self::current_state` changes when the transition settles.

The host owns scrim input, sheet/scroll-content pointer capture, Escape/back navigation,
focus containment/restoration and completion events. Supply the platform's
insets through `SafeInsets`; no extra native window is created.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L45)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`state_property`](#function-state_property)
- [`is_partial_enabled_property`](#function-is_partial_enabled_property)
- [`is_dismiss_enabled_property`](#function-is_dismiss_enabled_property)
- [`safe_insets_property`](#function-safe_insets_property)
- [`reduced_motion_property`](#function-reduced_motion_property)
- [`motion_scheme_property`](#function-motion_scheme_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`state`](#function-state)
- [`set_state`](#function-set_state)
- [`is_partial_enabled`](#function-is_partial_enabled)
- [`set_is_partial_enabled`](#function-set_is_partial_enabled)
- [`is_dismiss_enabled`](#function-is_dismiss_enabled)
- [`set_is_dismiss_enabled`](#function-set_is_dismiss_enabled)
- [`safe_insets`](#function-safe_insets)
- [`set_safe_insets`](#function-set_safe_insets)
- [`reduced_motion`](#function-reduced_motion)
- [`set_reduced_motion`](#function-set_reduced_motion)
- [`motion_scheme`](#function-motion_scheme)
- [`set_motion_scheme`](#function-set_motion_scheme)
- [`current_state`](#function-current_state)
- [`anchors`](#function-anchors)
- [`offset`](#function-offset)
- [`is_animating`](#function-is_animating)
- [`set_confirm_state_change`](#function-set_confirm_state_change)
- [`show`](#function-show)
- [`expand`](#function-expand)
- [`hide`](#function-hide)
- [`handle_back`](#function-handle_back)
- [`request_state`](#function-request_state)
- [`dismissed_event`](#function-dismissed_event)
- [`settled_event`](#function-settled_event)
- [`dismissed`](#function-dismissed)
- [`settled`](#function-settled)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L70)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<MaterialBottomSheetHost>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L70)

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

### state_property

```rust
fn state_property() -> &'static StyledProperty<MaterialSheetState>
```

Requested state. Bind this property two-way to application state.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### is_partial_enabled_property

```rust
fn is_partial_enabled_property() -> &'static StyledProperty<bool>
```

Whether the deterministic partial anchor is available.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### is_dismiss_enabled_property

```rust
fn is_dismiss_enabled_property() -> &'static StyledProperty<bool>
```

Whether scrim, drag and Escape may dismiss the sheet.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### safe_insets_property

```rust
fn safe_insets_property() -> &'static StyledProperty<Thickness>
```

Safe area supplied by the host, including system bars and keyboard insets.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### reduced_motion_property

```rust
fn reduced_motion_property() -> &'static StyledProperty<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### motion_scheme_property

```rust
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L77)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L348)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L375)

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

### state

```rust
fn state(self: &Self) -> MaterialSheetState
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L414)

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

### set_state

```rust
fn set_state(self: &Self, value: MaterialSheetState)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L417)

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

### is_partial_enabled

```rust
fn is_partial_enabled(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L420)

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

### set_is_partial_enabled

```rust
fn set_is_partial_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L423)

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

### is_dismiss_enabled

```rust
fn is_dismiss_enabled(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L426)

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

### set_is_dismiss_enabled

```rust
fn set_is_dismiss_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L429)

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

### safe_insets

```rust
fn safe_insets(self: &Self) -> Thickness
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L432)

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

### set_safe_insets

```rust
fn set_safe_insets(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L435)

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

### reduced_motion

```rust
fn reduced_motion(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L438)

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

### set_reduced_motion

```rust
fn set_reduced_motion(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L441)

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

### motion_scheme

```rust
fn motion_scheme(self: &Self) -> MaterialMotionScheme
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L444)

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

### set_motion_scheme

```rust
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L447)

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

### current_state

```rust
fn current_state(self: &Self) -> MaterialSheetState
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L450)

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

### anchors

```rust
fn anchors(self: &Self) -> MaterialSheetAnchors
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L453)

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

### offset

```rust
fn offset(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L456)

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

### is_animating

```rust
fn is_animating(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L459)

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

### set_confirm_state_change

```rust
fn set_confirm_state_change(self: &Self, confirm: Option<Rc<dyn Fn(MaterialSheetState) -> bool>>)
```

A synchronous veto applied to programmatic state changes and user gestures.
The callback must not change this host's state reentrantly.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L473)

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

### show

```rust
fn show(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L480)

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

### expand

```rust
fn expand(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L487)

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

### hide

```rust
fn hide(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L490)

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

### handle_back

```rust
fn handle_back(self: &Self) -> bool
```

Expanded → partial → hidden, following the modal back behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L495)

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

### request_state

```rust
fn request_state(self: &Self, state: MaterialSheetState) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L511)

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

### dismissed_event

```rust
fn dismissed_event() -> &'static RoutedEvent<RoutedEventArgs>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L525)

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

### settled_event

```rust
fn settled_event() -> &'static RoutedEvent<RoutedEventArgs>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L530)

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

### dismissed

```rust
fn dismissed(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L535)

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

### settled

```rust
fn settled(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/bottom_sheet.rs#L541)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ContentControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MaterialBottomSheetHost>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)

## Availability

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