Entry point for the RecordKit SDK, an instance is available as recordkit that can be imported from the module. Do not instantiate this class directly.

Hierarchy

  • EventEmitter
    • RecordKit

Methods

Discovery

Discover the windows and devices that are available to record.

Logging

Log what's going on to the console for easy debugging and troubleshooting.

Permissions

Check and request the apps permission to access the recording devices.

Methods

  • Initialize the RecordKit SDK.

    ⚠️ Must be called before calling any other RecordKit method.

    Parameters

    • args: {
          rpcBinaryPath: string;
          fallbackToNodeModules?: boolean;
          logLevel?: LogLevel;
      }
      • rpcBinaryPath: string

        Path to the recordkit-rpc binary, most of the time this should be set to path.join(process.resourcesPath, 'recordkit-rpc').

      • Optional fallbackToNodeModules?: boolean

        Whether to fallback to the RPC binary from node_modules if the given path does not exist. When enabled an extra check to see if the given path exists is performed. Most of the time this should be set to !app.isPackaged.

      • Optional logLevel?: LogLevel

        Set the global log level. Defaults to debug.

        This is the same as calling setLogLevel right after initialization.

    Returns Promise<void>

  • Parameters

    • schema: {
          output_directory?: string;
          items: RecorderSchemaItem[];
          settings?: {
              allowFrameReordering?: boolean;
          };
      }
      • Optional output_directory?: string
      • items: RecorderSchemaItem[]
      • Optional settings?: {
            allowFrameReordering?: boolean;
        }
        • Optional allowFrameReordering?: boolean

    Returns Promise<Recorder>

Discovery

Logging

  • Set the global log level. Defaults to debug.

    Messages with a lower level than this will be ignored and not passed to any log handlers.

    Parameters

    Returns Promise<void>

  • Overrides the global log level for a specific category. Defaults to the global log level.

    Messages in the given category with a lower level than this will be ignored and not passed to any log handlers.

    Parameters

    • params: {
          category: string;
          logLevel?: LogLevel;
      }
      • category: string
      • Optional logLevel?: LogLevel

    Returns Promise<void>

Permissions

  • Returns Promise<boolean>

  • Returns Promise<boolean>

  • Returns Promise<boolean>

  • Returns Promise<void>

Generated using TypeDoc