updated docs for ChromeSafariBrowserMenuItem

This commit is contained in:
Lorenzo Pichilli 2022-04-17 21:51:15 +02:00
parent 5510fd342f
commit 194106b802
1 changed files with 6 additions and 0 deletions

View File

@ -110,11 +110,15 @@ class ChromeSafariBrowser {
} }
///Adds a [ChromeSafariBrowserMenuItem] to the menu. ///Adds a [ChromeSafariBrowserMenuItem] to the menu.
///
///**NOTE**: Not available in an Android Trusted Web Activity.
void addMenuItem(ChromeSafariBrowserMenuItem menuItem) { void addMenuItem(ChromeSafariBrowserMenuItem menuItem) {
this._menuItems[menuItem.id] = menuItem; this._menuItems[menuItem.id] = menuItem;
} }
///Adds a list of [ChromeSafariBrowserMenuItem] to the menu. ///Adds a list of [ChromeSafariBrowserMenuItem] to the menu.
///
///**NOTE**: Not available in an Android Trusted Web Activity.
void addMenuItems(List<ChromeSafariBrowserMenuItem> menuItems) { void addMenuItems(List<ChromeSafariBrowserMenuItem> menuItems) {
menuItems.forEach((menuItem) { menuItems.forEach((menuItem) {
this._menuItems[menuItem.id] = menuItem; this._menuItems[menuItem.id] = menuItem;
@ -161,6 +165,8 @@ class ChromeSafariBrowser {
} }
///Class that represents a custom menu item for a [ChromeSafariBrowser] instance. ///Class that represents a custom menu item for a [ChromeSafariBrowser] instance.
///
///**NOTE**: Not available in an Android Trusted Web Activity.
class ChromeSafariBrowserMenuItem { class ChromeSafariBrowserMenuItem {
///The menu item id ///The menu item id
int id; int id;