customVirtioDeviceShouldRestore(_:saveState:)
The method the framework calls when a device restores its state.
Declaration
optional func customVirtioDeviceShouldRestore(_ device: VZCustomVirtioDevice, saveState: Data) -> BoolParameters
- device:
The device invoking the delegate method.
- saveState:
The data that the delegate returned from Customvirtiodevicesavestate(forrestore:).
Discussion
This method should return NO if restore operation failed.