Interface IFramingZoneControl
- Namespace
- Huddly.Sdk.FramingZoneCore
- Assembly
- Huddly.Sdk.dll
public interface IFramingZoneControl
Methods
GetFramingZone(CancellationToken)
Get a FramingZone with width and depth values for the framing zone
Task<Result<FramingZone>> GetFramingZone(CancellationToken ct = default)
Parameters
ctCancellationTokenA cancellation token
Returns
GetFramingZonePeopleDetectionResults(CancellationToken)
[Obsolete("Use GetFramingZonePersonDetections instead. Method will be removed in SDK version 3.")]
Task<Result<IList<FramingZonePersonDetectionResult>>> GetFramingZonePeopleDetectionResults(CancellationToken ct = default)
Parameters
Returns
GetFramingZonePersonDetections(CancellationToken)
Get stream of FramingZonePersonDetections that are detected within the framing zone
IAsyncEnumerable<IList<FramingZonePersonDetection>> GetFramingZonePersonDetections(CancellationToken ct = default)
Parameters
ctCancellationTokenA cancellation token
Returns
- IAsyncEnumerable<IList<FramingZonePersonDetection>>
A stream of framing zone detections
Exceptions
- NotSupportedException
When API call is unsupported
- ExclusiveLockException
When device is locked for firmware update
- OperationCanceledException
When operation is canceled
- RpcException
When a device or USB proxy RPC call fails
- Exception
On device internal or unexpected SDK errors
GetFramingZoneToggle(CancellationToken)
Get the current Framing Zone on/off toggle value
Task<Result<Toggle>> GetFramingZoneToggle(CancellationToken ct = default)
Parameters
ctCancellationTokenA cancellation token
Returns
IsFramingZoneEnabled(CancellationToken)
[Obsolete("Use <see cref=\"GetFramingZoneToggle\"/> instead. Method will be removed in SDK version 3.")]
Task<Result<bool>> IsFramingZoneEnabled(CancellationToken ct = default)
Parameters
Returns
SetFramingZone(FramingZone, CancellationToken)
Set the device FramingZone width and depth values
Task<Result> SetFramingZone(FramingZone value, CancellationToken ct = default)
Parameters
valueFramingZoneThe new value
ctCancellationTokenA cancellation token
Returns
SetFramingZoneToggle(Toggle, CancellationToken)
Set the current Framing Zone on/off toggle value
Task<Result> SetFramingZoneToggle(Toggle toggle, CancellationToken ct = default)
Parameters
toggleToggleA toggle value to turn the feature on or off
ctCancellationTokenA cancellation token
Returns
ToggleFramingZone(Toggle, CancellationToken)
[Obsolete("Use <see cref=\"SetFramingZoneToggle\"/> instead. Method will be removed in SDK version 3.")]
Task<Result> ToggleFramingZone(Toggle toggle, CancellationToken ct = default)
Parameters
toggleTogglectCancellationToken