# InteractionService.IsAvailable

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [InteractionService](/reference/api/go/aspire.hosting/interactionservice.md)
- Version: `17.0.0`
- Kind: `method`

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

## Definition

```go
type InteractionService interface {
    // ... omitted for brevity
    IsAvailable() (bool, error)
}
```

## Signature

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

## Returns

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

Returns `(bool, error)`.

## Defined on

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