browser/src/main/java/androidx/browser/browseractions/BrowserActionsIntent.java
public static List<BrowserActionItem> parseBrowserActionItems(ArrayList<Bundle> bundles) {
        List<BrowserActionItem> mActions = new ArrayList<>();
        for (int i = 0; i < bundles.size(); i++) {
            Bundle bundle = bundles.get(i);
            String title = bundle.getString(BrowserActionsIntent.KEY_TITLE);
            PendingIntent action = bundle.getParcelable(BrowserActionsIntent.KEY_ACTION);
            @DrawableRes
            int iconId = bundle.getInt(BrowserActionsIntent.KEY_ICON_ID);
            if (TextUtils.isEmpty(title) || action == null) {
                throw new IllegalArgumentException(
                        "Custom item should contain a non-empty title and non-null intent.");
            } else {
                BrowserActionItem item = new BrowserActionItem(title, action, iconId);
                mActions.add(item);
            }
        }
        return mActions;
    }
/**
     * Gets custom item list for browser action menu.
     * @param bundles Data for custom items from {@link BrowserActionsIntent}.
     * @return List of {@link BrowserActionItem}
     */
Gets custom item list for browser action menu.
@param bundles Data for custom items from  BrowserActionsIntent.
@return List of  BrowserActionItem
Gets custom item list for browser action menu . @param bundles Data for custom items from BrowserActionsIntent . @return List of BrowserActionItem
public static List<BrowserActionItem> parseBrowserActionItems(ArrayList<Bundle> bundles) {
        List<BrowserActionItem> mActions = new ArrayList<>();
        for (int i = 0; i < bundles.size(); i++) {
            Bundle bundle = bundles.get(i);
            String title = bundle.getString(BrowserActionsIntent.KEY_TITLE);
            PendingIntent action = bundle.getParcelable(BrowserActionsIntent.KEY_ACTION);
            @DrawableRes
            int iconId = bundle.getInt(BrowserActionsIntent.KEY_ICON_ID);
            if (TextUtils.isEmpty(title) || action == null) {
                throw new IllegalArgumentException(
                        "Custom item should contain a non-empty title and non-null intent.");
            } else {
                BrowserActionItem item = new BrowserActionItem(title, action, iconId);
                mActions.add(item);
            }
        }
        return mActions;
    }
public static List < BrowserActionItem > parseBrowserActionItems ( ArrayList < Bundle > bundles ) { List < BrowserActionItem > mActions = new ArrayList < > ( ) ; for ( int i = 0 ; i < bundles . size ( ) ; i ++ ) { Bundle bundle = bundles . get ( i ) ; String title = bundle . getString ( BrowserActionsIntent . KEY_TITLE ) ; PendingIntent action = bundle . getParcelable ( BrowserActionsIntent . KEY_ACTION ) ; @ DrawableRes int iconId = bundle . getInt ( BrowserActionsIntent . KEY_ICON_ID ) ; if ( TextUtils . isEmpty ( title ) || action == null ) { throw new IllegalArgumentException ( "Custom item should contain a non-empty title and non-null intent." ) ; } else { BrowserActionItem item = new BrowserActionItem ( title , action , iconId ) ; mActions . add ( item ) ; } } return mActions ; }
Gets custom item list for browser action menu.
Gets custom item list for browser action menu .