AtomicPusher class abstract
AtomicPusher main interface, providing local audio/video capture and push (streaming) capabilities.
AtomicPusher AtomicPusher provides live streaming push (upstream) capabilities, including local audio/video capture, push state management, and event callbacks.
Typical usage flow: bind the preview view via AtomicPusher.shared.setView(view), start pushing via startPush(config), monitor state for state changes, and release resources via release().
Key Features
- PusherState:Real-time pusher state, including connection state, statistics, and live room info.
- PusherEvent:Pusher event callbacks, including error, live ended, kicked out, and other event types.
Topics
See Also
- AtomicPlayer
- AtomicLiveView
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → PusherState
-
Reactive state. Carries state such as connection status, push statistics, and current live room info. You can read the current value or subscribe to changes.
no setter
Methods
-
addListener(
PusherListener? listener) → void - Add pusher event callback listener.
-
enableAdvancedFeature(
String key, Object value) → void - Advanced feature. Enable an advanced feature by key-value pair. Supported keys depend on the underlying native pusher capability and may evolve over versions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void - Actively release the pusher. After calling, all APIs become no-ops, and internally held underlying resources, state, and event subscriptions will be cleaned up.
-
removeListener(
PusherListener? listener) → void - Remove pusher event callback listener.
-
setView(
AtomicLiveWidget view) → void -
Set the render view. The locally captured video frames will be rendered into the given
AtomicLiveViewcontainer. -
startPush(
PusherInfo config) → void - Start pushing (streaming). Pass in the live room configuration; the SDK will create the push link accordingly.
-
stopPush(
) → void - Stop pushing (streaming).
-
toString(
) → String -
A string representation of this object.
inherited
-
updateConfig(
PusherInfo config, List< PusherInfoModifyFlag> modifyFlagList) → void -
Update live room configuration. Call this after
startPushto update live room info such as name, cover, category etc.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
Get the global singleton of AtomicPusher.
no setter