Contents

permissionStatus(for:)

Checks the specified permission against the currently denied, granted, and requested permissions.

Declaration

func permissionStatus(for permission: WKWebExtension.Permission) -> WKWebExtensionContext.PermissionStatus

Parameters

  • 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.

See Also

Related Documentation