---
title: deviceCapture
framework: iousbhost
role: symbol
role_heading: Type Property
path: iousbhost/iousbhostobjectinitoptions/devicecapture
---

# deviceCapture

The option to capture the device and terminate existing drivers.

## Declaration

```swift
static var deviceCapture: IOUSBHostObjectInitOptions { get }
```

## Discussion

Discussion Callers must have either the com.apple.vm.device-access entitlement and the IOUSBHostDevice object from IOServiceAuthorize(_:_:) authorization, or have root privileges. Using this option terminates all clients and drivers of the IOUSBHostDevice and associated IOUSBHostInterface clients, as well as the caller. Upon destroy() of the IOUSBHostDevice, the device resets and IOUSBHostInterface reregisters for IOKit matching.
