Contents

getToolbarItem(completionHandler:)

Gets the extension’s toolbar item from the target window.

Declaration

func getToolbarItem(completionHandler: @escaping  @Sendable (SFSafariToolbarItem?) -> Void)
func toolbarItem() async -> SFSafariToolbarItem?

Parameters

  • completionHandler:

    A block called after the toolbar item is retrieved.

Discussion