Contents

yieldActivation(toApplicationWithBundleIdentifier:)

Explicitly allows another app to make itself active.

Declaration

func yieldActivation(toApplicationWithBundleIdentifier bundleIdentifier: String)

Parameters

  • bundleIdentifier:

    The bundle identifier to yield activation state to.

Mentioned in

Discussion

Calling this method doesn’t deactivate the yielding app, nor does it activate the app you yield to. For cooperative activation, the other app must request activation in the future by calling activate() or equivalent.

Use this method to yield activation to apps that aren’t running at the time the method invokes. If it’s known that the target application is running, use yieldActivation(to:) instead.

See Also

Activating and deactivating the app