indexInWindow(for:)
Called when the index of the tab in the window is needed.
Declaration
optional func indexInWindow(for context: WKWebExtensionContext) -> IntParameters
- context:
The context in which the web extension is running.
Discussion
This method should be implemented for better performance. Defaults to the window’s tabs(for:) method to find the index if not implemented.