tauri_runtime_wry

Trait EventLoopExtMacOS

Source
pub trait EventLoopExtMacOS {
    // Required methods
    fn set_activation_policy(&mut self, activation_policy: ActivationPolicy);
    fn set_activate_ignoring_other_apps(&mut self, ignore: bool);
}

Required Methods§

Source

fn set_activation_policy(&mut self, activation_policy: ActivationPolicy)

Sets the activation policy for the application. It is set to NSApplicationActivationPolicyRegular by default.

This function only takes effect if it’s called before calling run or run_return. To set the activation policy after that, use EventLoopWindowTargetExtMacOS::set_activation_policy_at_runtime.

Source

fn set_activate_ignoring_other_apps(&mut self, ignore: bool)

Used to prevent the application from automatically activating when launched if another application is already active

The default behavior is to ignore other applications and activate when launched.

This function only takes effect if it’s called before calling run or run_return

Implementors§