getPreset

fun getPreset(capacity: Int, features: EnumSet<AdaptiveGroupingRule>): MutableList<MenuItem>

Get the appropriate preset for the given capacity and features.

Return

The preset configuration for the given parameters

Parameters

capacity

The toolbar capacity (number of visible items)

features

The set of adaptive features to enable