grantCapability(_:)
Grants the specified capability to the process.
Declaration
func grantCapability(_ capability: ProcessCapability) throws -> ProcessCapability.GrantParameters
- capability:
The capability to grant.
Return Value
A ProcessCapability.Grant object that represents the granted capability.
Discussion
When the web content process no longer needs the capability, call invalidate() on the returned object.