customVirtioDeviceSaveState(forRestore:)
The method the framework calls when a device needs to save its state.
Declaration
optional func customVirtioDeviceSaveState(forRestore device: VZCustomVirtioDevice) -> Data?Parameters
- device:
The device invoking the delegate method.
Discussion
Return the state data to save in an NSData object. If there is no state to save, return an empty NSData object ([NSData data]).
If you return nil from this method, the save operation fails.