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

    Interface ExtensionDialogResult<TResult>

    The outcome of opening an extension dialog.

    This is deliberately a wrapper object rather than a bare result value: the host returns undefined both when a dialog is dismissed without a result and when the call is blocked, so completed is the only way to tell those apart.

    interface ExtensionDialogResult<TResult = unknown> {
        completed: boolean;
        reason?: ExtensionDialogFailureReason;
        result?: TResult;
    }

    Type Parameters

    • TResult = unknown
    Index
    completed: boolean

    True if the dialog opened and has now closed.

    Set only when completed is false.

    result?: TResult

    The value passed to closeExtensionDialog, or undefined if the user dismissed the window.