@companion-surface/base
    Preparing search index...

    Interface SurfacePluginDetectionEvents<TInfo>

    interface SurfacePluginDetectionEvents<TInfo> {
        surfacesAdded: [surfaceInfos: DetectionSurfaceInfo<TInfo>[]];
        surfacesRemoved: [deviceHandles: string[]];
    }

    Type Parameters

    • TInfo
    Index

    Properties

    surfacesAdded: [surfaceInfos: DetectionSurfaceInfo<TInfo>[]]

    Emitted when surfaces are detected

    surfacesRemoved: [deviceHandles: string[]]

    Emitted when discovered surfaces are lost. This does not trigger a disconnection of the surface, that must be done through the open surface instance. Note: This is important to call, otherwise the unique id reserved by surfacesAdded will be held until the plugin is stopped