Contents

delegate

The device’s delegate.

Declaration

weak var delegate: (any VZCustomVirtioDeviceDelegate)? { get set }

Discussion

To be able to respond to events from a VZCustomVirtioDevice, implement a class that conforms to the VZCustomVirtioDeviceDelegate protocol and assign it to this property. You can call the delegate as soon as customVirtioConfiguration(_:didCreateDevice:) returns, to avoid missing any calls, set this delegate when the framework calls customVirtioConfiguration(_:didCreateDevice:).