Skip to content

DeviceApiExtensions

Static class in Oadm.Sdk.Vapix · Oadm.Sdk.dll

Compatibility checks every task plugin must use before it changes anything on a device. Semantics follow VAPIX versioning: a different major version is a different, incompatible API; within a major version a higher minor version is backwards compatible.

public static class DeviceApiExtensions

Guide: Devices and VAPIX

static DeviceApi? FindApi(this IEnumerable<DeviceApi> apis, string apiId, int? major = null)

The highest listed version of apiId with the given major version, or of any major when null.

static DeviceApi Require(this IEnumerable<DeviceApi> apis, string apiId, string minVersion)

Throws DeviceNotCompatibleException unless DeviceApiExtensions.Supports is true.

static bool Supports(this IEnumerable<DeviceApi> apis, string apiId, string minVersion)

True when the device offers apiId with the same major version and at least minVersion.