IBM Aspera JavaScript Library
    Preparing search index...

    Function getCapabilities

    • Returns an object describing the high-level capabilities supported by the user's transfer client (e.g. IBM Aspera for desktop, Connect, or HTTP Gateway).

      Use this for feature detection at a semantic level rather than checking individual RPC methods. Capabitilies may depend on multiple underlying RPC methods and also may vary by transfer client.

      Some capabitilies may depend on newer versions of the transfer client. This function may be useful if you want to conditionally perform certain actions rather than potentially getting an error.

      Returns SdkCapabilities

      an object with boolean flags for each capability.

      // Conditionally render UI based on capabilities
      const caps = asperaSdk.getCapabilities();
      // Determine if your web application can render image previews for user selected files
      if (caps.imagePreview) {
      asperaSdk.readAsArrayBuffer(path);
      }