SelfCapabilities

View as MarkdownOpen in Claude

SelfCapabilities manages the capability state for the self participant.

Capabilities are received from the server via call.joined events and determine what actions the current participant is allowed to perform.

Each capability is exposed as both:

  • An observable (e.g., end$) for reactive state management
  • A synchronous getter (e.g., end) for immediate access

Member-level capabilities are accessed via the grouped self / member accessors:

  • capabilities.self.muteAudio (sync)
  • capabilities.self$ (observable)

When a new call.joined event is received, the capabilities state is completely replaced (not merged).

Each capability is exposed in both forms on every page below — an observable (e.g. end$) for reactive UI binding, and a synchronous getter (e.g. end) for one-shot reads. The accessor cards below list the observable; click through for both signatures plus an example.

Extends

  • Destroyable

Constructors

Constructor

1new SelfCapabilities(): SelfCapabilities

Returns

SelfCapabilities

Inherited from

Destroyable.constructor

Accessors

Methods