For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReferenceClick-to-Call
GuidesReferenceClick-to-Call
  • Core
    • Overview
  • Entities
    • SignalWire
    • Address
    • Participant
    • ClientPreferences
    • SelfCapabilities
      • destroy
      • destroyed$
      • device$
      • end$
      • lock$
      • member$
      • screenshare$
      • self$
      • sendDigit$
      • setLayout$
      • state$
      • vmutedHide$
    • SelfParticipant
    • User
    • WebRTCCall
  • Web Components
    • Overview
    • sw-audio-level
    • sw-call-controls
    • sw-call-dialpad
    • sw-call-media
    • sw-call-provider
    • sw-call-status
    • sw-call-widget
    • sw-click-to-call
    • sw-device-selector
    • sw-directory
    • sw-local-camera
    • sw-participant-controls
    • sw-participants
    • sw-self-media
    • sw-ui-alert
    • sw-ui-background
    • sw-ui-call-layout
    • sw-ui-content-drawer
    • sw-ui-control-bar
    • sw-ui-dialpad
    • sw-ui-dropup
    • sw-ui-icon
    • sw-ui-modal
    • sw-ui-responsive-container
    • sw-ui-split-button
    • sw-ui-transcript-view
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Extends
  • Constructors
  • Constructor
  • Accessors
  • Methods
Entities

SelfCapabilities

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

destroy

Next
Built with

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

destroyed$

Observable that emits when the instance is destroyed

device$

Observable for device capability

end$

Observable for end call capability

lock$

Observable for lock capability

member$

Observable for other member capabilities

screenshare$

Observable for screenshare capability

self$

Observable for self member capabilities

sendDigit$

Observable for send digit capability

setLayout$

Observable for set layout capability

state$

Observable for the full capabilities state

vmutedHide$

Observable for vmuted hide capability

Methods

destroy

Cleans up subscriptions and subjects owned by this instance.