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.collaborationManger
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: PTCollaborationServerCommunication { 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
init(collaborationService service: PTCollaborationServerCommunication)
-
The
PTCollaborationAnnotationReplyViewController
shown by this view controller for viewing annotation replies.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) PTCollaborationAnnotationReplyViewController *collaborationReplyViewController;
Swift
var collaborationReplyViewController: PTCollaborationAnnotationReplyViewController? { get }
-
The collaboration annotation view controller managed by this view controller and shown in a
PTNavigationListsViewController
.Declaration
Objective-C
@property (nonatomic, strong, readonly) PTCollaborationAnnotationViewController *_Nonnull collaborationAnnotationViewController;
Swift
var collaborationAnnotationViewController: PTCollaborationAnnotationViewController { get }
-
Whether the
PTCollaborationAnnotationViewController
is included in this view controller’sPTNavigationListsViewController
. The default value isYES
.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isCollaborationAnnotationListHidden) BOOL collaborationAnnotationListHidden;
Swift
var isCollaborationAnnotationListHidden: Bool { get set }