index property
Index of buttons within the entire bottom toolbar, including both built-in buttons and extension buttons.
For example, if it's for the host, the index refers to the array index of hostButtons + hostExtendButtons.
If this index is set, the corresponding button will be placed at the specified position in the array of buttons for the corresponding role.
If this index is not set, the button will be placed after the built-in buttons.
The index starts from 0, and -1 indicates that the button will be placed after the built-in buttons by default.
Definition of built-in buttons: an array of type List<ZegoLiveStreamingMenuBarButtonName>.
Definition of extension buttons: an array of type List<ZegoLiveStreamingMenuBarExtendButton>.
Implementation
final int index;