initWithXPCRepresentation:error:
Creates a media session from an XPC object.
Declaration
- (instancetype) initWithXPCRepresentation:(xpc_object_t) xpcRepresentation error:(NSError **) error;Parameters
- xpcRepresentation:
A representation of a media environment the app receives through XPC.
- error:
A pointer to an error object that describes why the method failed, or
nilif no error occurred. Passnilto ignore the error.