Instance Method

toolbarItemClicked(in:)

Called when a toolbar item associated with the app extension is clicked.

Declaration

optional func toolbarItemClicked(in window: SFSafariWindow)

Parameters

window

The window containing the clicked toolbar item.

Discussion

The toolbar item can either execute a command or display a popover.

See Also

Working with Toolbar Items

func validateToolbarItem(in: SFSafariWindow, validationHandler: (Bool, String) -> Void)

Called in response to a requested update or a browser state change that may affect the toolbar item.