prompt


Description:

public virtual bool prompt (int prompt_id, string dialog_name, NamedParameters? parameters)

Instructs extension to show dialog dialog_name.

If it cannot be found, or any error, then return false. The caller can pass optional parameters , if this uses any. Meaning of parameters is known only to the caller and to the dialog implementor, it's not interpretted nor checked for correctness in any way in UserPrompterServer. The only limitation of parameters is that the array elements are strings.

The prompt_id is used as an identificator of the prompt itself, and is used in response call, which finishes the prompt.

Note: The function call should not block main loop, it should just show dialog and return.

Parameters:

this

an UserPrompterServerExtension

prompt_id

Prompt identificator, which is used in call to response

dialog_name

Name of a dialog to run

parameters

Optional extension parameters for the dialog, as passed by a caller

Returns:

Whether dialog was found and shown.