Contents

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 nil if no error occurred. Pass nil to ignore the error.

See Also

Managing media life cycle