Function iced::window::run_with_handle

source ·
pub fn run_with_handle<Message>(
    id: Id,
    f: impl FnOnce(&WindowHandle<'_>) -> Message + 'static
) -> Command<Message>
Expand description

Runs the given callback with the native window handle for the window with the given id.

Note that if the window closes before this call is processed the callback will not be run.