# IsAvailable

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

Gets a value indicating whether the interaction service is available to prompt the user.

## Definition

```go
func (InteractionService) IsAvailable() (bool, error)
```

## Returns

`(bool, error)` -- `true` when the service can prompt the user; otherwise `false`.

Returns `(bool, error)`.

## Applies to

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