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
createBooleanInput Creates a boolean (checkbox) input.
createBooleanInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
createChoiceInput Creates a choice input that selects from a list of options.
createChoiceInput( name: string, choices?: InteractionChoiceOption[], options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringchoicesInteractionChoiceOption[] optionaloptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
createFileInput Creates a file input.
createFileInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
createNumberInput Creates a numeric input.
createNumberInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
createSecretInput Creates a secret (masked) text input.
createSecretInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
createTextInput Creates a single-line text input.
createTextInput( name: string, options?: CreateInteractionInputOptions): InteractionInputBuilderParameters
namestringoptionsCreateInteractionInputOptions optionalReturns
InteractionInputBuilder method
isAvailable Gets a value indicating whether the interaction service is available to prompt the user.
isAvailable(): booleanReturns
booleanmethod
promptConfirmation Prompts the user for confirmation with an OK/Cancel dialog.
promptConfirmation( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionMessageBoxOptions optionalcancellationToken cancellationToken optionalReturns
BoolInteractionResult method
promptInput Prompts the user for a single input.
promptInput( title: string, message: string, input: InteractionInputBuilder, options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputInteractionResultParameters
titlestringmessagestringinputInteractionInputBuilder optionsInteractionInputsDialogOptions optionalcancellationToken cancellationToken optionalReturns
InputInteractionResult method
promptInputs Prompts the user for multiple inputs.
promptInputs( title: string, message: string, inputs: InteractionInputBuilder[], options?: InteractionInputsDialogOptions, cancellationToken?: cancellationToken): InputsInteractionResultParameters
titlestringmessagestringinputsInteractionInputBuilder[] optionsInteractionInputsDialogOptions optionalcancellationToken cancellationToken optionalReturns
InputsInteractionResult method
promptMessageBox Prompts the user with a message box dialog.
promptMessageBox( title: string, message: string, options?: InteractionMessageBoxOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionMessageBoxOptions optionalcancellationToken cancellationToken optionalReturns
BoolInteractionResult method
promptNotification Prompts the user with a notification.
promptNotification( title: string, message: string, options?: InteractionNotificationOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
titlestringmessagestringoptionsInteractionNotificationOptions optionalcancellationToken cancellationToken optionalReturns
BoolInteractionResult method
promptProgress Displays a progress dialog with an indeterminate progress indicator.
promptProgress( message: string, options?: InteractionProgressOptions, cancellationToken?: cancellationToken): BoolInteractionResultParameters
messagestringoptionsInteractionProgressOptions optionalcancellationToken cancellationToken optionalReturns
BoolInteractionResult