ZegoLiveStreamingBottomMenuBarConfig class

Configuration options for the bottom menu bar (toolbar).

You can use the ZegoUIKitPrebuiltLiveStreamingConfig.bottomMenuBar property to set the properties inside this class.

Constructors

ZegoLiveStreamingBottomMenuBarConfig({bool showInRoomMessageButton = true, List<ZegoLiveStreamingMenuBarButtonName> hostButtons = const [ZegoLiveStreamingMenuBarButtonName.beautyEffectButton, ZegoLiveStreamingMenuBarButtonName.soundEffectButton, ZegoLiveStreamingMenuBarButtonName.switchCameraButton, ZegoLiveStreamingMenuBarButtonName.toggleCameraButton, ZegoLiveStreamingMenuBarButtonName.toggleMicrophoneButton], List<ZegoLiveStreamingMenuBarButtonName> coHostButtons = const [ZegoLiveStreamingMenuBarButtonName.switchCameraButton, ZegoLiveStreamingMenuBarButtonName.toggleCameraButton, ZegoLiveStreamingMenuBarButtonName.toggleMicrophoneButton, ZegoLiveStreamingMenuBarButtonName.coHostControlButton, ZegoLiveStreamingMenuBarButtonName.beautyEffectButton, ZegoLiveStreamingMenuBarButtonName.soundEffectButton], List<ZegoLiveStreamingMenuBarButtonName> audienceButtons = const [], List<ZegoLiveStreamingMenuBarExtendButton> hostExtendButtons = const [], List<ZegoLiveStreamingMenuBarExtendButton> coHostExtendButtons = const [], List<ZegoLiveStreamingMenuBarExtendButton> audienceExtendButtons = const [], int maxCount = 5, ZegoLiveStreamingBottomMenuBarButtonStyle? buttonStyle, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Color? backgroundColor, double? height})

Properties

audienceButtons ↔ List<ZegoLiveStreamingMenuBarButtonName>
The list of predefined buttons to be displayed when the user role is set to audience.
getter/setter pair
audienceExtendButtons ↔ List<ZegoLiveStreamingMenuBarExtendButton>
List of extension buttons for the audience. These buttons will be added in the same way as the hostExtendButtons.
getter/setter pair
backgroundColor ↔ Color?
background color for the bottom menu bar.
getter/setter pair
buttonStyle ↔ ZegoLiveStreamingBottomMenuBarButtonStyle?
Button style for the bottom menu bar.
getter/setter pair
coHostButtons ↔ List<ZegoLiveStreamingMenuBarButtonName>
The list of predefined buttons to be displayed when the user role is set to co-host.
getter/setter pair
coHostExtendButtons ↔ List<ZegoLiveStreamingMenuBarExtendButton>
List of extension buttons for the co-hosts. These buttons will be added in the same way as the hostExtendButtons.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
height ↔ double?
height for the bottom menu bar.
getter/setter pair
hostButtons ↔ List<ZegoLiveStreamingMenuBarButtonName>
The list of predefined buttons to be displayed when the user role is set to host.
getter/setter pair
hostExtendButtons ↔ List<ZegoLiveStreamingMenuBarExtendButton>
List of extension buttons for the host. These buttons will be added to the menu bar in the specified order and automatically added to the overflow menu when the maxCount limit is exceeded.
getter/setter pair
margin ↔ EdgeInsetsGeometry?
margin for the bottom menu bar.
getter/setter pair
maxCount ↔ int
Controls the maximum number of buttons (including predefined and custom buttons) to be displayed in the menu bar (toolbar). When the number of buttons exceeds the maxCount limit, a "More" button will appear. Clicking on it will display a panel showing other buttons that cannot be displayed in the menu bar (toolbar).
getter/setter pair
padding ↔ EdgeInsetsGeometry?
padding for the bottom menu bar.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showInRoomMessageButton ↔ bool
Whether to display the room message button.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited