tauri/examples/splashscreen
Lucas Fernandes Nogueira 4a031add69
feat(core): expose set_activation_policy, closes #2258 (#2420)
* feat(core): expose `set_activation_policy`, closes #2258

* fix change file [skip ci]

* Update .changes/runtime-set-activation-policy.md [skip ci]

Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>

* clippy

* allow unused mut on example

Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-08-13 13:25:31 -03:00
..
dist chore: add .prettierrc in repo root (#2145) 2021-07-03 19:48:04 -03:00
src-tauri feat(core): expose set_activation_policy, closes #2258 (#2420) 2021-08-13 13:25:31 -03:00
package.json feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00
README.md feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00
yarn.lock feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00

Splashscreen example

This example demonstrates how a splashscreen can be implemented when waiting on an initialization code on Rust or on the UI.

Running the example

Run the following scripts on the root directory of the repository:

# runs the example that wait on a Rust initialization script to show the main window
$ cargo run --bin splashscreen
# runs the example that wait on the UI to load to show the main window
$ cargo run --bin splashscreen --features ui