FormIt Plugin API  v23.0.0 (2023.0.0)
FormIt.Collaboration API

Description

Functions

json FormIt.Collaboration.Connect (sSessionLink)
 
json FormIt.Collaboration.IsConnected ()
 Check whether this client is the collaboration session's owner Parameters: In: Out: bIsConnected. More...
 
json FormIt.Collaboration.Disconnect ()
 Disconnect from the collaboration server. More...
 
json FormIt.Collaboration.GetSessionId ()
 Get ID of the current Collaboration session (empty, if not connected). More...
 
json FormIt.Collaboration.IsSessionOwner ()
 Check whether this client is the collaboration session's owner Parameters: In: Out: isOwner. More...
 
json FormIt.Collaboration.IsFollowingCamera ()
 Check whether this client is following the camera of another client specified by sUserId. More...
 
json FormIt.Collaboration.FollowCamera (sUserId)
 Follow the camera of another client specified by sUserId. More...
 
json FormIt.Collaboration.GetFollowingCameraUserID ()
 GetFollowingCameraUserID returns the user ID of the client being followed. More...
 
json FormIt.Collaboration.UnFollowCamera ()
 Parameters: Un-follow somebody else's camera. More...
 
json FormIt.Collaboration.ReceiveCreateRefHistory (nHistoryID)
 Receive "referenced History created" notification from the collaboration server. More...
 
json FormIt.Collaboration.ReceiveHistory (nHistoryID, sBase64History, bIsOwner)
 Receive initial history and owner status from the collaboration server. More...
 
json FormIt.Collaboration.ReceiveDelta (nHistoryID, nDeltaID, sBase64Delta)
 Receive Delta from the collaboration server. More...
 
json FormIt.Collaboration.ReceiveUndoRedo (nHistoryID, nUndoValue, nBaseDeltaID, sBase64Delta)
 Receive Undo/Redo from the collaboration server. More...
 
json FormIt.Collaboration.ReceiveDataAcceptance (nHistoryID, nDataType, nDeltaID, bAccepted)
 Receive data acceptance from the collaboration server. More...
 

Function Documentation

json FormIt.Collaboration.Connect ( sSessionLink  )
json FormIt.Collaboration.Disconnect ( )

Disconnect from the collaboration server.

Parameters: Out: disconnected

Returns
{...}
json FormIt.Collaboration.FollowCamera ( sUserId  )

Follow the camera of another client specified by sUserId.

Parameters: In: sUserId

Parameters
[in]sUserIdString
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.Collaboration.GetFollowingCameraUserID ( )

GetFollowingCameraUserID returns the user ID of the client being followed.

Parameters: Out: User ID

Returns
{...}
json FormIt.Collaboration.GetSessionId ( )

Get ID of the current Collaboration session (empty, if not connected).

Parameters: Out: sessionID

Returns
sessionID
json FormIt.Collaboration.IsConnected ( )

Check whether this client is the collaboration session's owner Parameters: In: Out: bIsConnected.

Returns
{...}
json FormIt.Collaboration.IsFollowingCamera ( )

Check whether this client is following the camera of another client specified by sUserId.

Parameters: In: Out: isFollowing

Returns
FormIt.Collaboration.IsFollowingAnyCamera()
json FormIt.Collaboration.IsSessionOwner ( )

Check whether this client is the collaboration session's owner Parameters: In: Out: isOwner.

Returns
isOwner
json FormIt.Collaboration.ReceiveCreateRefHistory ( nHistoryID  )

Receive "referenced History created" notification from the collaboration server.

Parameters: In: nHistoryID Out: bSuccess

Parameters
[in]nHistoryIDint
Returns
bSuccess
json FormIt.Collaboration.ReceiveDataAcceptance ( nHistoryID  ,
nDataType  ,
nDeltaID  ,
bAccepted   
)

Receive data acceptance from the collaboration server.

Parameters: In: nHistoryID, nDataType, nDeltaID, bAccepted Out: bSuccess

Parameters
[in]nHistoryIDint
[in]nDataTypeint
[in]nDeltaIDint
[in]bAcceptedbool
Returns
bSuccess
json FormIt.Collaboration.ReceiveDelta ( nHistoryID  ,
nDeltaID  ,
sBase64Delta   
)

Receive Delta from the collaboration server.

Parameters: In: nHistoryID, nDeltaID, sBase64Delta Out: bSuccess

Parameters
[in]nHistoryIDint
[in]nDeltaIDint
[in]sBase64DeltaString
Returns
bSuccess
json FormIt.Collaboration.ReceiveHistory ( nHistoryID  ,
sBase64History  ,
bIsOwner   
)

Receive initial history and owner status from the collaboration server.

Parameters: In: nHistoryID, sBase64History, bIsOwner Out: bSuccess

Parameters
[in]nHistoryIDint
[in]sBase64HistoryString
[in]bIsOwnerbool
Returns
bSuccess
json FormIt.Collaboration.ReceiveUndoRedo ( nHistoryID  ,
nUndoValue  ,
nBaseDeltaID  ,
sBase64Delta   
)

Receive Undo/Redo from the collaboration server.

Parameters: In: nHistoryID, nUndoValue, nBaseDeltaID, sBase64Delta Out: bSuccess

Parameters
[in]nHistoryIDint
[in]nUndoValueint
[in]nBaseDeltaIDint
[in]sBase64DeltaString
Returns
bSuccess
json FormIt.Collaboration.UnFollowCamera ( )

Parameters: Un-follow somebody else's camera.

Returns
JSON_UNDEFINED, i.e. {}