The options.addLabel function doesn't allow me to specify a name for the label. I would like to be able to programatically modify labels and retrieve their values, for example, using options.getValueAsString.
I see that there is a constructor where I can make a new label with a specified name:
Options.LabelOption(String name, String label)
But I can't figure out how to add that to the menu layout.
Is "addCustomOption" the right way to do that? I feel like since a label is not a custom option, maybe there is a more preferred way.
Please sign in to leave a comment.