public static final class DeviceApi.Button.Bar extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DeviceApi.Button.Bar.ModeThe device modes that have a button bar. | 
| Modifier and Type | Field and Description | 
|---|---|
| List<DeviceApi.Button.Config> | configsThe configurations of this button bar. | 
| DeviceApi.Button.Bar.Mode | modeWhich mode this button bar belongs to. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Optional<DeviceApi.Button.Bar> | get()Gets the button bar in the current mode. | 
| static Optional<DeviceApi.Button.Bar> | get(DeviceApi.Button.Bar.Mode buttonMode)Gets the button bar in the given mode. | 
| boolean | set()Sets the button configurations in this bar. | 
| boolean | set(boolean persist)Sets the button configurations in this bar. | 
public final List<DeviceApi.Button.Config> configs
public final DeviceApi.Button.Bar.Mode mode
public static Optional<DeviceApi.Button.Bar> get()
public static Optional<DeviceApi.Button.Bar> get(DeviceApi.Button.Bar.Mode buttonMode)
buttonMode - The mode.public boolean set()
public boolean set(boolean persist)
persist - Whether the configuration shall be persisted to
 the device.Copyright © 2025. All rights reserved.