Viveport developer console provide flexibility for the developer to submit one build and opt-in multiple platforms (i.e. Viveport consumer store and Arcade) at the same time which can save developer's publishing and maintenance effort.
However, please note that necessary changes are required for adapting consumer store build to opt-in arcade as below.
[Top Level API mode selection]
Refer to https://developer.viveport.com/documents/sdk/en/api_top.html and call Api.QueryRuntimeMode().
The callback QueryRunTimeHandler(int nResult, int nMode) of the API QueryRuntimeMode() has two return parameters:
nResult: 0 - successful, 1 - fail
nMode: 1 - VIVEPORT desktop mode, 2 - VIVEPORT arcade mode
You can use VIVEPORT Arcade API once you have switched VIVEPORT arcade mode.
For example, if nMode is 2 that means in arcade mode the developer can only call Arcade Leaderboard API: https://developer.viveport.com/documents/sdk/en/api_leaderboard_arcade.html and Arcade Sessions API: https://developer.viveport.com/documents/sdk/en/api_session.html and GetUserId().
Please do not call other APIs when nMode is 2.
評論
0 條評論
文章評論已關閉。