---
title: "selectAlternateSetting(_:)"
framework: iousbhost
role: symbol
role_heading: Instance Method
path: "iousbhost/iousbhostinterface/selectalternatesetting(_:)"
---

# selectAlternateSetting(_:)

Selects an alternative setting for the interface.

## Declaration

```swift
func selectAlternateSetting(_ alternateSetting: Int) throws
```

## Parameters

- `alternateSetting`: The alternative interface number to activate.

## Discussion

Discussion Use this method to select an alternative setting for the interface. The operation aborts all pending input/output requests on the interface’s pipes, and closes all open pipes. It also selects the new alternative setting through the SET_INTERFACE control request (See USB 3.2, 9.4.10.). note: Any IOUSBHostPipe objects that already exist are no longer valid.

## See Also

### Managing Pipes

- [copyPipe(withAddress:)](iousbhost/iousbhostinterface/copypipe(withaddress:).md)
