> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIDisconnectReason

Enum that contains reasons why the connection to the Voximplant Cloud has been closed, provided by the [client(\_:didDisconnectWithReason:)](/api-reference/iossdk/core/viclientsessiondelegate#symbol-386cfb72941c5c6a) API.

@objc enum VIDisconnectReason

## Values

### case alreadyDisconnected

Client is already disconnected.

### case appMovedToBackground

Application has been moved to the background without active calls.

### case connectionLost

Connection to the Voximplant Cloud has been closed due to network issues.

### case userInitiated

Connection to the Voximplant Cloud has been closed by the [disconnect()](/api-reference/iossdk/core/viclient#symbol-747b2226d45e2f5f) method call.

## Initializers

### init(rawValue:)

init?(rawValue: Int)

Inherited from `RawRepresentable.init(rawValue:)`.

## Properties

### description

var description: String \{ get }

Disconnect reason description.

## Default Implementations

### Equatable Implementations

Equatable.!=(*:*:)

### RawRepresentable Implementations

RawRepresentable.hash(into:) RawRepresentable.hashValue

## Relationships

**Conforms To:** Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable, Swift.RawRepresentable