@safetech/pcsdk - v1.1.7
    Preparing search index...

    Class PCSDK

    PCSDK SDK main class

    Index

    Properties

    timeOffset: number = 0

    Methods

    • Returns the last plugin error code captured during initialization

      Returns number

    • Returns PCError

    • Returns information about all connected tokens

      Returns Promise<
          { deviceId: number; label: string; leftSpace: number; serial: string }[],
      >

    • Parameters

      • Optionalcallback: (status: { connected: number[]; disconnected: number[] }) => void

        The function is called when a token is connected or disconnected. An object with properties {connected, disconnected} is passed as arguments, which contains arrays with identifiers of disconnected and connected tokens

      • OptionalerrorCallback: (error: PCError | undefined) => void

        The function is called when an error occurs during connection status polling

      • Optionaloptions: { rutokenOnly?: boolean } = {}

      Returns Promise<
          {
              db: { error?: PCError
              | null; ok: boolean };
              plugin: { error: PCError | null; ok: boolean };
          },
      >

    • Whether PCSDK is properly initialized

      Returns boolean

    • Checking the activity of the Rutoken

      Returns boolean

    • The scenario of using only the Rutoken plugin is enabled

      Returns boolean