activate(from:options:)
Attempts to activate the application using the specified options.
Declaration
func activate(from application: NSRunningApplication, options: NSApplication.ActivationOptions = []) -> BoolParameters
- application:
The application to activate.
- options:
The options to use during activation.
Return Value
Returns true if the request is allowed by the system, otherwise false.
Discussion
Use this method to request app activation. Calling this method doesn’t guarantee app activation. For cooperative activation, the other application should call yieldActivation(to:) or equivalent prior to the target application invoking activate().