NmNativeCallPort class

An NmCallPort whose tiles are the textures of native clients.

Constructors

NmNativeCallPort({required NmNativeCallClient client, NmNativeCallClient? remoteClient, required NmCallInfo activeCall, required Future<void> onAccept(), required Future<void> onHangUp(), NmNativeCall? call, BoxFit fit = BoxFit.cover})
Creates the port: client captures this device (local tile) and receives the other side (remote tile); remoteClient — another client that receives the remote video (Andrey's loopback: the receive-only peer B).

Properties

activeCall → NmCallInfo
Who calls whom.
final
call → NmNativeCall?
Engine of the clients (default NmNativeCall.instance).
final
client → NmNativeCallClient
The client of this device.
final
fit → BoxFit
How the video fills a tile.
final
hashCode → int
The hash code for this object.
no setterinherited
onAccept → Future<void> Function()
Accepts the call (the app's signalling).
final
onHangUp → Future<void> Function()
Ends the call (the app's signalling; dispose the clients there).
final
remoteClient → NmNativeCallClient?
Client whose received video is the remote tile (default: client).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept() → Future<void>
Accepts the incoming call.
hangUp() → Future<void>
Declines, cancels or ends the call.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
videoTile(BuildContext context, NmCallTile tile) → Widget
Video tile builder: the engine's renderer of tile (a texture, a LiveKit track, or a placeholder).

Operators

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