car/app/app/src/main/java/androidx/car/app/model/Header.java
/**
         * Adds an {@link Action} that will be displayed at the end of a header.
         *
         * <p>By default, a template will not have end header actions.
         *
         * <h4>Requirements</h4>
         *
         * Up to 2 actions (which are {@link Action#APP_ICON}, {@link Action#BACK}
         * or {@link Action#TYPE_CUSTOM} with an icon) at the end of the header.
         */
Adds an  Action that will be displayed at the end of a header.
By default, a template will not have end header actions.

Requirements

Up to 2 actions (which are  Action#APP_ICON,  Action#BACK
or  Action#TYPE_CUSTOM with an icon) at the end of the header.
Adds an Action that will be displayed at the end of a header . By default a template will not have end header actions . Requirements Up to 2 actions ( which are Action#APP_ICON Action#BACK or Action#TYPE_CUSTOM with an icon ) at the end of the header .
@NonNull
        public Builder addEndHeaderAction(@NonNull Action headerAction) {
            mEndHeaderActions.add(requireNonNull(headerAction));
            return this;
        }
@ NonNull public Builder addEndHeaderAction ( @ NonNull Action headerAction ) { mEndHeaderActions . add ( requireNonNull ( headerAction ) ) ; return this ; }
Adds an {@link Action} that will be displayed at the end of a header.
Adds an { @link Action } that will be displayed at the end of a header .