Kvaser CanKing GUI Extensions SDK - v7.6.1
    Preparing search index...

    Function closeExtensionDialog

    • Closes the extension dialog this code is running in, returning a result to whoever opened it.

      Only callable from inside a dialog window; CanKing identifies the window from the caller, so a dialog cannot close another extension's window. Closing the window by any other means resolves the opener with no result.

      Type Parameters

      • TResult = unknown

        Type of the result value. Must be JSON-serializable.

      Parameters

      • Optionalresult: TResult

        The value to resolve the opener's openExtensionDialog promise with.

      Returns Promise<void>