Added events for url handling and create example

This commit is contained in:
Richard 2021-04-21 17:52:31 -03:00 committed by Héctor Ramón Jiménez
parent d2c8a3e04b
commit 9ae22b58d8
No known key found for this signature in database
GPG key ID: 44B88EB52AB1EE8D
6 changed files with 93 additions and 0 deletions

View file

@ -310,6 +310,9 @@ async fn run_instance<A, E, C>(
window.request_redraw();
}
event::Event::ReceivedUrl(url) => {
events.push(iced_native::Event::UrlReceived(url));
}
event::Event::UserEvent(message) => {
messages.push(message);
}