Updated on 2024-09-13 GMT+08:00

Starting Projection

Function

This API is used to start projection. Call this API only after login.

Function Prototype

startProjection(startProjectionParam: StartProjectionParam, onStartProjectionResult?: (ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void): voidstartProjection(startProjectionParam: StartProjectionParam, onStartProjectionResult?: (ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
startProjectionParam Yes StartProjectionParam Parameter body for starting projection.
onStartProjectionResult Yes (ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void Callback of starting projection.
Table 2 StartProjectionParam
Parameter Mandatory Type Description
pairCode Yes string Pairing code.
randomNumber No string Random number, which needs to be carried for cross-enterprise projection.
verifyCode No string Verification code, which needs to be carried for cross-enterprise projection.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string, startProjectionResult: StartProjectionResult) => void

Table 3 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.
startProjectionResult StartProjectionResult Projection result.
Table 4 StartProjectionResult
Parameter Type Description
randomNumber string Random number.