# ItemCollectionTransitionProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/struct-itemcollectiontransitionprovider/

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

```rust
struct ItemCollectionTransitionProvider
```

Extensible transition provider. Batches begin on the next rendering frame;
transitions a subclass does not start still receive completion notification.
Native subclasses that own animation resources also override
`cancel_transitions_core` to release those resources before an element is
returned to its factory.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L37)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`start_transitions_core`](#function-start_transitions_core)
- [`should_animate_core`](#function-should_animate_core)
- [`cancel_transitions_core`](#function-cancel_transitions_core)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`animations_enabled`](#function-animations_enabled)
- [`set_animations_enabled`](#function-set_animations_enabled)
- [`should_animate`](#function-should_animate)
- [`start_transitions`](#function-start_transitions)
- [`queue_transition`](#function-queue_transition)
- [`transition_completed`](#function-transition_completed)
- [`notify_transition_completed`](#function-notify_transition_completed)
- [`retained_batch_count`](#function-retained_batch_count)

<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.Controls.Repeater/item_collection_transition_provider.rs#L46)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L46)

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

### start_transitions_core

```rust
fn start_transitions_core(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L46)

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

### should_animate_core

```rust
fn should_animate_core(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L46)

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

### cancel_transitions_core

```rust
fn cancel_transitions_core(self: &Self, element: Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L46)

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

### construct

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L95)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L106)

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

### animations_enabled

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

Whether this provider permits animations. The current platform motion
preference is also consulted for each queued transition; enabling this
flag does not override a system request for reduced motion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L112)

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

### set_animations_enabled

```rust
fn set_animations_enabled(self: &Self, enabled: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L115)

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

### should_animate

```rust
fn should_animate(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L118)

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

### start_transitions

```rust
fn start_transitions(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L121)

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

### queue_transition

```rust
fn queue_transition(self: &Self, transition: Rc<ItemCollectionTransition>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L162)

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

### transition_completed

```rust
fn transition_completed(self: &Self, handler: impl Fn(&ItemCollectionTransitionCompletedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L203)

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

### notify_transition_completed

```rust
fn notify_transition_completed(self: &Self, transition: Rc<ItemCollectionTransition>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L215)

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

### retained_batch_count

```rust
fn retained_batch_count(self: &Self) -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/item_collection_transition_provider.rs#L221)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ItemCollectionTransitionProviderImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/trait-itemcollectiontransitionproviderimplext/)
- `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`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ItemCollectionTransitionProvider>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`ItemCollectionTransitionProviderImpl`](/docs/0.5.0/api/ferroui-controls-repeater/trait-itemcollectiontransitionproviderimpl/)
- `Drop`

## Availability

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