ZegoLiveStreamingControllerCoHostImpl class
Here are the APIs related to inviting co-hosts to connect.
Constructors
Properties
-
audienceLocalConnectStateNotifier
→ ValueNotifier<
ZegoLiveStreamingAudienceConnectState> -
for audience: current audience connection state, audience or co-host(connected)
no setter
-
coHostCountNotifier
→ ValueNotifier<
int> -
current co-host total count
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostNotifier
→ ValueNotifier<
ZegoUIKitUser?> -
no setter
- private → ZegoLiveStreamingControllerCoHostPrivateImpl
-
Don't call that
no setterinherited
-
requestCoHostUsersNotifier
→ ValueNotifier<
List< ZegoUIKitUser> > -
for host: current requesting co-host's audiences
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
audienceAgreeCoHostInvitation(
{bool withToast = false, String customData = ''}) → Future< bool> -
audienceCancelCoHostRequest(
{String customData = ''}) → Future< bool> - audience cancels the co-host request to the host.
-
audienceRejectCoHostInvitation(
{String customData = ''}) → Future< bool> -
audienceSendCoHostRequest(
{bool withToast = false, String customData = ''}) → Future< bool> - audience requests to become a co-host by sending a request to the host. if you want audience be co-host without request to the host, use startCoHost
-
hostAgreeCoHostRequest(
ZegoUIKitUser audience, {String customData = ''}) → Future< bool> -
host approve the co-host request made by
audience
. -
hostRejectCoHostRequest(
ZegoUIKitUser audience, {String customData = ''}) → Future< bool> -
host reject the co-host request made by
audience
. -
hostSendCoHostInvitationToAudience(
ZegoUIKitUser audience, {bool withToast = false, int timeoutSecond = 60, String customData = ''}) → Future< bool> -
host invite
audience
to be a co-host -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCoHost(
ZegoUIKitUser coHost, {String customData = ''}) → Future< bool> -
host remove the co-host, make
coHost
to be a audience -
startCoHost(
) → Future< bool> - audience switch to be an co-host directly, without request to host if you want audience be co-host with request to the host, use audienceSendCoHostRequest
-
stopCoHost(
{bool showRequestDialog = true}) → Future< bool> - co-host ends the connection and switches to the audience role voluntarily.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited