addMenuItems method

void addMenuItems(
  1. List<ChromeSafariBrowserMenuItem> menuItems
)

Adds a list of ChromeSafariBrowserMenuItem to the menu.

Officially Supported Platforms/Implementations:

  • Android Chrome Custom Tabs:
    • Not available in a Trusted Web Activity.
  • iOS SFSafariViewController

Parameters - Officially Supported Platforms/Implementations:

  • menuItems: all platforms

Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.

Implementation

void addMenuItems(List<ChromeSafariBrowserMenuItem> menuItems) =>
    platform.addMenuItems(menuItems);