@companion-module/base
    Preparing search index...

    Class InstanceBase<TManifest>Abstract

    Type Parameters

    Index

    Constructors

    Accessors

    Methods

    • Request the specified feedback instances to be be re-executed

      Parameters

      • ...feedbackIds: string[]

        The ids of the feedback instances to check

      Returns void

    • Get the last set value of a variable from this connection

      Type Parameters

      • T extends string

      Parameters

      • variableId: T

        id of the variable

      Returns TManifest["variables"][T] | undefined

      The value

    • Handle request from Companion to start/stop recording actions

      Parameters

      • isRecording: boolean

        whether recording is now running

      Returns void

    • Add an action to the current recording session

      Parameters

      • action: CompanionRecordedAction

        The action to be added to the recording session

      • OptionaluniquenessId: string

        A unique id for the action being recorded. This should be different for each action, but by passing the same as a previous call will replace the previous value.

      Returns void

    • Save an updated configuration object Note: The whole config object and the keys of the secrets object are reported to the webui, so be careful how sensitive data is stored

      Parameters

      • this: InstanceBase<TManifest & { secrets: undefined }>
      • newConfig: TManifest["config"] | undefined

        The new config object, or undefined to not update the config

      Returns void

    • Save an updated configuration object Note: The whole config object and the keys of the secrets object are reported to the webui, so be careful how sensitive data is stored

      Parameters

      • this: InstanceBase<TManifest>
      • newConfig: TManifest["config"] | undefined

        The new config object, or undefined to not update the config

      • newSecrets: TManifest["secrets"] | undefined

        The new secrets object, or undefined to not update the secrets

      Returns void

    • Call subscribe on all currently known placed actions. It can be useful to trigger this upon establishing a connection, to ensure all data is loaded.

      Parameters

      • ...actionIds: string[]

        The actionIds to call subscribe for. If no values are provided, then all are called.

      Returns void

    • Call unsubscribe on all currently known placed actions. It can be useful to do some cleanup upon a connection closing.

      Parameters

      • ...actionIds: string[]

        The actionIds to call subscribe for. If no values are provided, then all are called.

      Returns void

    • Call unsubscribe on all currently known placed feedbacks. It can be useful to do some cleanup upon a connection closing.

      Parameters

      • ...feedbackIds: string[]

        The feedbackIds to call subscribe for. If no values are provided, then all are called.

      Returns void