Interface IBridgeSource
- Namespace
- VisioForge.Core.MediaBlocks.Bridge
- Assembly
- VisioForge.Core.dll
Interface for bridge source implementations that receive data from a bridge connection.
public interface IBridgeSource : IBridge, IDisposableImplements
Properties
IsConnected
Gets a value indicating whether the source is currently connected to a sink.
bool IsConnected { get; }Property Value
IsReceivingData
Gets a value indicating whether the source is currently receiving data.
bool IsReceivingData { get; }Property Value
Methods
Connect()
Attempts to connect to a sink with the current identifier.
bool Connect()Returns
- bool
-
True if connection was successful, false otherwise.
Disconnect()
Disconnects from the current sink if connected.
bool Disconnect()Returns
- bool
-
True if disconnection was successful, false otherwise.
GetPairedSink()
Gets the paired sink if available and accessible.
IBridgeSink GetPairedSink()Returns
- IBridgeSink
-
The paired sink or null if not available.