onClicked property

(void Function(int index, ZegoUIKitUser? user)?) onClicked
getter/setter pair

A callback function that is called when a seat is clicked.

The index parameter is the index of the seat that was clicked. The user parameter is the user who is currently sitting in the seat, or null if the seat is empty.

Note that when you set this callback, the default behavior of clicking on a seat to display a menu will be disabled. You need to handle it yourself. You can refer to the usage of ZegoUIKitPrebuiltLiveAudioRoomController for reference.

Implementation

void Function(int index, ZegoUIKitUser? user)? onClicked;