LiveAudienceListener class

Live audience events

This listener is used to receive audience dynamic events in the live room.

Note: Corresponding callbacks will be triggered when an audience joins, leaves, or is muted.

Event Description

Event Trigger Condition Callback Parameters
onAudienceJoined Audience joins the room audience
onAudienceLeft Audience leaves the room audience
onAudienceMessageDisabled Audience is muted/unmuted audience, isDisable

Constructors

LiveAudienceListener({void onAudienceJoined(LiveUserInfo audience)?, void onAudienceLeft(LiveUserInfo audience)?, void onAudienceMessageDisabled(LiveUserInfo audience, bool isDisable)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onAudienceJoined ↔ void Function(LiveUserInfo audience)?
Audience joined event.
getter/setter pair
onAudienceLeft ↔ void Function(LiveUserInfo audience)?
Audience left event.
getter/setter pair
onAudienceMessageDisabled ↔ void Function(LiveUserInfo audience, bool isDisable)?
Audience message disabled event.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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