ZegoUIKitPrebuiltLiveStreaming class APIs Events Configs Migration_v3.x

Live Streaming Widget.

You can embed this widget into any page of your project to integrate the functionality of a live streaming.

You can refer to our documentation, documentation with cohosting or our sample code.

Inheritance

Constructors

ZegoUIKitPrebuiltLiveStreaming({Key? key, required int appID, required String appSign, required String userID, required String userName, required String liveID, required ZegoUIKitPrebuiltLiveStreamingConfig config, ZegoUIKitPrebuiltLiveStreamingEvents? events})
const

Properties

appID int
You can create a project and obtain an appID from the ZEGOCLOUD Admin Console.
final
appSign String
You can create a project and obtain an appSign from the ZEGOCLOUD Admin Console.
final
config ZegoUIKitPrebuiltLiveStreamingConfig
Initialize the configuration for the live-streaming.
final
events ZegoUIKitPrebuiltLiveStreamingEvents?
You can listen to events that you are interested in here.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
liveID String
You can customize the live ID arbitrarily, just need to know: users who use the same live ID can talk with each other.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userID String
The ID of the currently logged-in user. It can be any valid string. Typically, you would use the ID from your own user system, such as Firebase.
final
userName String
The name of the currently logged-in user. It can be any valid string. Typically, you would use the name from your own user system, such as Firebase.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ZegoUIKitPrebuiltLiveStreaming>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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