activationRequest(forExtensionWithIdentifier:queue:)
Creates a request to activate a System Extension.
Declaration
class func activationRequest(forExtensionWithIdentifier identifier: String, queue: dispatch_queue_t) -> SelfParameters
- identifier:
The bundle identifier of the target extension.
- queue:
The dispatch queue to use when calling delegate methods.
Mentioned in
Return Value
A new extension request.
Discussion
Create and submit an activation request whenever you want to use a given extension. If the extension is inactive, the system may need to prompt the user for approval. The request succeeds only after the user gives their approval.
If the extension is already active, the request succeeds in short order, without significant delay or user interaction. If you request activation of a new version of an already-active extension, the system prompts the user to resolve the conflict before proceeding.
An activation request may succeed, but also indicate that the extension requires a restart to become active. This can occur when replacing an extension that required a restart to deactivate. The most recently activated extension becomes active when the user restarts their Mac.