init(XPCRepresentation:)
Creates a USB accessory from an XPC representation.
Declaration
init?(XPCRepresentation xpcRepresentation: xpc_object_t)Parameters
- xpcRepresentation:
The XPC representation of an
AAUSBAccessoryobject received from the XPC.
Return Value
An AAUSBAccessory object if the framework decoded the provided xpc_object_t, or nil if it’s invalid.