# ActivationKind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/application_lifetimes/enum-activationkind/

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

```rust
enum ActivationKind
```

The kind of an application activation or deactivation.

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

## Members

- [`File`](#variant-file)
- [`OpenUri`](#variant-openuri)
- [`Reopen`](#variant-reopen)
- [`Background`](#variant-background)

<a id="variant-file"></a>

### File

```rust
File = 10
```

When the application is passed a URI to open one or more files (for
example on iOS and macOS).

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

<a id="variant-openuri"></a>

### OpenUri

```rust
OpenUri = 20
```

When the application is passed a URI to open (deep linking).

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

<a id="variant-reopen"></a>

### Reopen

```rust
Reopen = 30
```

When the application is asked to reopen. An example of this is on
macOS when all the windows are closed, the application continues to
run in the background, and the user clicks the application's dock
icon.

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

<a id="variant-background"></a>

### Background

```rust
Background = 40
```

When the application enters or leaves a background state. An example
is when on macOS the user hides or shows an application (not a
window), which is equivalent to the application moving into or out
of the background on a mobile platform.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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