PTCollaborationDocumentController
@interface PTCollaborationDocumentController : PTDocumentController
A subclass of the PTDocumentController
that will synchronize annotations between the device and
central server.
The implementation is minimal:
It connects the
PTCollaborationDocumentController.toolManager.collaborationManager
and thePTCollaborationServerCommunication service
.It does not allow the user to select annotations where the author of the annotation does not match the user that is logged in to the
PTCollaborationServerCommunication service
.
-
The object that communicates with the server.
Declaration
Objective-C
@property (nonatomic, strong, readonly) id<PTCollaborationServerCommunication> _Nonnull service;
Swift
var service: any PTCollaborationServerCommunication { get }
-
The collaboration mode.
Declaration
Objective-C
@property (nonatomic, readonly) PTExternalAnnotManagerMode collaborationMode;
Swift
var collaborationMode: PTExternalAnnotManagerMode { get }
-
Creates a new
PTCollaborationDocumentController
and sets itsservice
property to that provided in this initializer.Declaration
Objective-C
- (nonnull instancetype)initWithCollaborationService: (nonnull id<PTCollaborationServerCommunication>)service;
Swift
convenience init(collaborationService service: any PTCollaborationServerCommunication)
-
Creates a new
PTCollaborationDocumentController
and sets itsservice
property to that provided in this initializer.Declaration
Objective-C
- (nonnull instancetype) initWithCollaborationService: (nonnull id<PTCollaborationServerCommunication>)service collaborationMode:(PTExternalAnnotManagerMode)collaborationMode;
Swift
init(collaborationService service: any PTCollaborationServerCommunication, collaborationMode: PTExternalAnnotManagerMode)
-
The
PTAnnotationReplyViewController
shown by this view controller for viewing annotation replies.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) PTAnnotationReplyViewController *collaborationReplyViewController;
Swift
var collaborationReplyViewController: PTAnnotationReplyViewController? { get }
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithCoder:(nonnull NSCoder *)aDecoder;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init;