Table of Contents

Class DesktopCompanionCoordinator

Namespace
Cress.Companion
Assembly
Cress.Companion.Core.dll
public sealed class DesktopCompanionCoordinator : IDisposable
Inheritance
DesktopCompanionCoordinator
Implements
Inherited Members

Constructors

DesktopCompanionCoordinator(ICompanionSessionBackendFactory, ICompanionTargetCatalog, ICompanionWindowInspector, ICompanionPreviewProvider, ICompanionClock, DesktopCompanionOptions?)

public DesktopCompanionCoordinator(ICompanionSessionBackendFactory sessionFactory, ICompanionTargetCatalog targetCatalog, ICompanionWindowInspector windowInspector, ICompanionPreviewProvider previewProvider, ICompanionClock clock, DesktopCompanionOptions? options = null)

Parameters

sessionFactory ICompanionSessionBackendFactory
targetCatalog ICompanionTargetCatalog
windowInspector ICompanionWindowInspector
previewProvider ICompanionPreviewProvider
clock ICompanionClock
options DesktopCompanionOptions

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetSnapshot(bool)

public CompanionServiceSnapshot GetSnapshot(bool includePreview = false)

Parameters

includePreview bool

Returns

CompanionServiceSnapshot

ListTargetsAsync()

public Task<IReadOnlyList<CompanionTargetInfo>> ListTargetsAsync()

Returns

Task<IReadOnlyList<CompanionTargetInfo>>

PauseRecordingAsync(int)

public Task<CompanionSessionSnapshot> PauseRecordingAsync(int processId)

Parameters

processId int

Returns

Task<CompanionSessionSnapshot>

ResumeRecordingAsync(int)

public Task<CompanionSessionSnapshot> ResumeRecordingAsync(int processId)

Parameters

processId int

Returns

Task<CompanionSessionSnapshot>

SetOverlayEnabledAsync(int, bool)

public Task<CompanionSessionSnapshot> SetOverlayEnabledAsync(int processId, bool overlayEnabled)

Parameters

processId int
overlayEnabled bool

Returns

Task<CompanionSessionSnapshot>

StartRecordingAsync(int, bool)

public Task<CompanionSessionSnapshot> StartRecordingAsync(int processId, bool overlayEnabled = true)

Parameters

processId int
overlayEnabled bool

Returns

Task<CompanionSessionSnapshot>

StopRecordingAsync(int)

public Task<CompanionSessionSnapshot> StopRecordingAsync(int processId)

Parameters

processId int

Returns

Task<CompanionSessionSnapshot>

Events

Changed

public event Action? Changed

Event Type

Action