Bounded display support for one exact presentation contract version.
Summary
Functions
Maximum extension contracts advertised by one display or remote peer.
Builds and validates support against the canonical schema contract.
Tests whether support provides one exact contract version and optional capability.
Types
@type t() :: %GPUI.Schema.Extension.Support{ capabilities: [atom()], id: atom(), version: pos_integer() }
Functions
@spec max_contracts() :: pos_integer()
Maximum extension contracts advertised by one display or remote peer.
@spec new(atom(), pos_integer(), [atom()]) :: {:ok, t()} | {:error, term()}
Builds and validates support against the canonical schema contract.
@spec provides?(t(), atom(), pos_integer(), atom() | nil) :: boolean()
Tests whether support provides one exact contract version and optional capability.