PTCollaborationManager
@interface PTCollaborationManager : PTBaseCollaborationManager
The object that is responsible for sending local changes to the remote server, and for receiving remote changes from the server.
-
Initializes a newly created
PTCollaborationManager
instance.Declaration
Objective-C
- (nonnull instancetype)initWithToolManager:(nonnull PTToolManager *)toolManager userId:(nonnull NSString *)userId mode:(PTExternalAnnotManagerMode)mode;
Swift
init(toolManager: PTToolManager, userId: String, mode: PTExternalAnnotManagerMode)
Parameters
toolManager
The tool manager used by this object to register for annotation change events that occur locally, and to push back changes that happen remotely (via its annotManager).
userId
The identifier for the current collaboration user.
mode
The mode to use for the
PTExternalAnnotManager
.Return Value
an initialized
PTCollaborationManager
instance. -
The mode used by the
PTExternalAnnotManager
.Declaration
Objective-C
@property (nonatomic, readonly) PTExternalAnnotManagerMode mode;
Swift
var mode: PTExternalAnnotManagerMode { get }