DisplayBehavior

class DisplayBehavior
kotlin.Any
   ↳ kotlin.Enum<androidx.car.widget.CarMenuItem.DisplayBehavior>
   ↳ androidx.car.widget.CarMenuItem.DisplayBehavior

Display behaviors for CarMenuItems. describes whether the items will be displayed on the toolbar or in the overflow menu.

Summary

Enum values

The item is always displayed on the toolbar, never in the overflow menu.

The item is displayed on the toolbar if there's room, otherwise in the overflow menu.

The item is always displayed in the overflow menu, never on the toolbar.

Enum values

ALWAYS

enum val ALWAYS : CarMenuItem.DisplayBehavior

The item is always displayed on the toolbar, never in the overflow menu.

IF_ROOM

enum val IF_ROOM : CarMenuItem.DisplayBehavior

The item is displayed on the toolbar if there's room, otherwise in the overflow menu.

NEVER

enum val NEVER : CarMenuItem.DisplayBehavior

The item is always displayed in the overflow menu, never on the toolbar.