IInteractionService
Interface
interface IInteractionService { createBooleanInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilder; createChoiceInput( name: string, choices?: InteractionChoiceOption[], options?: CreateInteractionInputOptions): InteractionInputBuilder; createFileInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilder; createNumberInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilder; createSecretInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilder; createTextInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilder; isAvailable(): boolean; promptConfirmation( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResult; promptInput( title: string, message: string, input: InteractionInputBuilder, options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputInteractionResult; promptInputs( title: string, message: string, inputs: InteractionInputBuilder[], options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputsInteractionResult; promptMessageBox( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResult; promptNotification( title: string, message: string, options?: InteractionNotificationOptions, cancellationToken?: cancellationToken): BoolInteractionResult; promptProgress( message: string, options?: InteractionProgressOptions, cancellationToken?: cancellationToken): BoolInteractionResult;}13 members
Methods
method
createBooleanInputCreates a boolean (checkbox) input.
createBooleanInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
createChoiceInputCreates a choice input that selects from a list of options.
createChoiceInput( name: string, choices?: InteractionChoiceOption[], options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringchoicesInteractionChoiceOption[]optionaloptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
createFileInputCreates a file input.
createFileInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
createNumberInputCreates a numeric input.
createNumberInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
createSecretInputCreates a secret (masked) text input.
createSecretInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
createTextInputCreates a single-line text input.
createTextInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptionsoptionalReturns
InteractionInputBuildermethod
isAvailableGets a value indicating whether the interaction service is available to prompt the user.
isAvailable(): booleanReturns
booleanmethod
promptConfirmationPrompts the user for confirmation with an OK/Cancel dialog.
promptConfirmation( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionMessageBoxOptionsoptionalcancellationTokencancellationTokenoptionalReturns
BoolInteractionResultmethod
promptInputPrompts the user for a single input.
promptInput( title: string, message: string, input: InteractionInputBuilder, options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputInteractionResultParameters
titlestringmessagestringinputInteractionInputBuilderoptionsInteractionInputsDialogOptionsoptionalcancellationTokencancellationTokenoptionalReturns
InputInteractionResultmethod
promptInputsPrompts the user for multiple inputs.
promptInputs( title: string, message: string, inputs: InteractionInputBuilder[], options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputsInteractionResultParameters
titlestringmessagestringinputsInteractionInputBuilder[]optionsInteractionInputsDialogOptionsoptionalcancellationTokencancellationTokenoptionalReturns
InputsInteractionResultmethod
promptMessageBoxPrompts the user with a message box dialog.
promptMessageBox( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionMessageBoxOptionsoptionalcancellationTokencancellationTokenoptionalReturns
BoolInteractionResultmethod
promptNotificationPrompts the user with a notification.
promptNotification( title: string, message: string, options?: InteractionNotificationOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionNotificationOptionsoptionalcancellationTokencancellationTokenoptionalReturns
BoolInteractionResultmethod
promptProgressDisplays a progress dialog with an indeterminate progress indicator.
promptProgress( message: string, options?: InteractionProgressOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
messagestringoptionsInteractionProgressOptionsoptionalcancellationTokencancellationTokenoptionalReturns
BoolInteractionResult