Contents

userGesturePerformed(in:)

Should be called by the app when a user gesture is performed in a specific tab.

Declaration

func userGesturePerformed(in tab: any WKWebExtensionTab)

Parameters

  • tab:

    The tab in which the user gesture was performed.

Discussion

When a user gesture is performed in a tab, this method should be called to update the extension context.

This enables the extension to be aware of the user gesture, potentially granting it access to features that require user interaction, such as activeTab. Not required if using performAction(for:).

See Also

Related Documentation