ZegoPublisherState enum

Publish stream status.

Inheritance
  • Object
  • Enum
  • ZegoPublisherState

Constructors

ZegoPublisherState()
const

Values

NoPublish → const ZegoPublisherState

The state is not published, and it is in this state before publishing the stream. If a steady-state exception occurs in the publish process, such as AppID or Token are incorrect, or if other users are already publishing the stream, there will be a failure and enter this state.

PublishRequesting → const ZegoPublisherState

The state that it is requesting to publish the stream after the startPublishingStream function is successfully called. The UI is usually displayed through this state. If the connection is interrupted due to poor network quality, the SDK will perform an internal retry and will return to the requesting state.

Publishing → const ZegoPublisherState

The state that the stream is being published, entering the state indicates that the stream has been successfully published, and the user can communicate normally.

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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

Constants

values → const List<ZegoPublisherState>
A constant List of the values in this enum, in order of their declaration.
[NoPublish, PublishRequesting, Publishing]