---
title: "customVirtioDeviceWillReset(_:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzcustomvirtiodevicedelegate/customvirtiodevicewillreset(_:)"
---

# customVirtioDeviceWillReset(_:)

The method the framework calls when a device resets.

## Declaration

```swift
optional func customVirtioDeviceWillReset(_ device: VZCustomVirtioDevice)
```

## Parameters

- `device`: The device invoking the delegate method.

## Discussion

Discussion You can initiate a reset by calling the requestReset() method, and the guest driver can also initiate the reset by itself. The framework calls this method when the reset completes for either scenario.
