# INotifyCollectionChangedSuspender

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/binding/trait-inotifycollectionchangedsuspender/

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

```rust
trait INotifyCollectionChangedSuspender
```

A collection whose notifications can be held back (`INotifyCollectionChangedSuspender`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/i_observable_collection.rs#L11)

## Members

- [`suspend_count`](#function-suspend_count)
- [`suspend_notifications`](#function-suspend_notifications)

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

### suspend_count

```rust
fn suspend_count(self: &Self) -> Rc<dyn IDisposable>
```

Holds back the notifications of `Count` until the handle is disposed, which raises `Count`
once if it changed (`SuspendCount`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/i_observable_collection.rs#L14)

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

### suspend_notifications

```rust
fn suspend_notifications(self: &Self) -> Rc<dyn IDisposable>
```

Holds back the notifications of changes and of `Count` until the handle is disposed, which
raises `Count` and a reset (`SuspendNotifications`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/i_observable_collection.rs#L18)

## Trait implementations

- [`INotifyCollectionChangedSuspender`](/docs/0.5.0/api/ferroui-dynamic-data/binding/trait-inotifycollectionchangedsuspender/)

## Availability

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