---
title: "customVirtioDevice(_:didReceiveNotificationFor:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzcustomvirtiodevicedelegate/customvirtiodevice(_:didreceivenotificationfor:)"
---

# customVirtioDevice(_:didReceiveNotificationFor:)

The method the framework calls when the device receives a virtqueue (Virtio queue) notification from the guest.

## Declaration

```swift
optional func customVirtioDevice(_ device: VZCustomVirtioDevice, didReceiveNotificationFor queue: VZVirtioQueue)
```

## Parameters

- `device`: The device invoking the delegate method.
- `queue`: The queue that received the notification.
