permissionStatus(for:)
Checks the specified permission against the currently denied, granted, and requested permissions.
Declaration
func permissionStatus(for permission: WKWebExtension.Permission) -> WKWebExtensionContext.PermissionStatusParameters
- permission:
The permission for which to return the status.
Discussion
Permissions can be granted on a per-tab basis. When the tab is known, access checks should always use the method that checks in a tab.