# InteractionService

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `interface`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

A service to interact with the current development environment.

## Definition

```go
type InteractionService interface{}
```

## Methods

- [CreateBooleanInput](/reference/api/go/aspire.hosting/interactionservice/createbooleaninput.md) -- `method` -- Creates a boolean (checkbox) input.
  ```go
  CreateBooleanInput(name string, options ...*CreateInteractionInputOptions) InteractionInputBuilder
  ```
- [CreateChoiceInput](/reference/api/go/aspire.hosting/interactionservice/createchoiceinput.md) -- `method` -- Creates a choice input that selects from a list of options.
  ```go
  CreateChoiceInput(name string, options ...*CreateChoiceInputOptions) InteractionInputBuilder
  ```
- [CreateFileInput](/reference/api/go/aspire.hosting/interactionservice/createfileinput.md) -- `method` -- Creates a file input.
  ```go
  CreateFileInput(name string, options ...*CreateInteractionInputOptions) InteractionInputBuilder
  ```
- [CreateNumberInput](/reference/api/go/aspire.hosting/interactionservice/createnumberinput.md) -- `method` -- Creates a numeric input.
  ```go
  CreateNumberInput(name string, options ...*CreateInteractionInputOptions) InteractionInputBuilder
  ```
- [CreateSecretInput](/reference/api/go/aspire.hosting/interactionservice/createsecretinput.md) -- `method` -- Creates a secret (masked) text input.
  ```go
  CreateSecretInput(name string, options ...*CreateInteractionInputOptions) InteractionInputBuilder
  ```
- [CreateTextInput](/reference/api/go/aspire.hosting/interactionservice/createtextinput.md) -- `method` -- Creates a single-line text input.
  ```go
  CreateTextInput(name string, options ...*CreateInteractionInputOptions) InteractionInputBuilder
  ```
- [IsAvailable](/reference/api/go/aspire.hosting/interactionservice/isavailable.md) -- `method` -- Gets a value indicating whether the interaction service is available to prompt the user.
  ```go
  IsAvailable() (bool, error)
  ```
- [PromptConfirmation](/reference/api/go/aspire.hosting/interactionservice/promptconfirmation.md) -- `method` -- Prompts the user for confirmation with an OK/Cancel dialog.
  ```go
  PromptConfirmation(title string, message string, options ...*PromptConfirmationOptions) (*BoolInteractionResult, error)
  ```
- [PromptInput](/reference/api/go/aspire.hosting/interactionservice/promptinput.md) -- `method` -- Prompts the user for a single input.
  ```go
  PromptInput(title string, message string, input InteractionInputBuilder, options ...*PromptInputOptions) (*InputInteractionResult, error)
  ```
- [PromptInputs](/reference/api/go/aspire.hosting/interactionservice/promptinputs.md) -- `method` -- Prompts the user for multiple inputs.
  ```go
  PromptInputs(title string, message string, inputs []InteractionInputBuilder, options ...*PromptInputsOptions) InputsInteractionResult
  ```
- [PromptMessageBox](/reference/api/go/aspire.hosting/interactionservice/promptmessagebox.md) -- `method` -- Prompts the user with a message box dialog.
  ```go
  PromptMessageBox(title string, message string, options ...*PromptMessageBoxOptions) (*BoolInteractionResult, error)
  ```
- [PromptNotification](/reference/api/go/aspire.hosting/interactionservice/promptnotification.md) -- `method` -- Prompts the user with a notification.
  ```go
  PromptNotification(title string, message string, options ...*PromptNotificationOptions) (*BoolInteractionResult, error)
  ```
- [PromptProgress](/reference/api/go/aspire.hosting/interactionservice/promptprogress.md) -- `method` -- Displays a progress dialog with an indeterminate progress indicator.
  ```go
  PromptProgress(message string, options ...*PromptProgressOptions) (*BoolInteractionResult, error)
  ```

## Applies to

- [`InteractionService`](/reference/api/go/aspire.hosting/interactionservice.md)
