4. ARGSession
ARGSession maintains the status of your application and manages the life cycle of your application according to the status.
Last updated
Was this helpful?
ARGSession maintains the status of your application and manages the life cycle of your application according to the status.
Last updated
Was this helpful?
When creating ARGSession, you can pass ARGConfig and ARGInferenceConfig.Feature parameters. ARGConfig contains API URL, API key, secret key, and auth key and it must be sent to ARGSession.
You must pass ARGInferenceConfig.Feature parameter to ARGSession and the selected feature will be obtained. The configured feature information can be obtained from ARGFrame. (For related information, please refer to 12.1 ARGSession and 12.3 ARGFrame.)
Below is sample code to create ARGSession.
Unless properly setting ARGConfig during ARGSession creation, ARGear SDK will not be initiated. Therefore, you must create an account in ,set the created API Key information in ARGConfig, and create ARGSession with the ARGConfig to use ARGear SDK.
To start or resume the currently used ARGSession, simply call the “resume” function inside.
Sample code is written below.
To pause the current ARGSession, call pause function inside ARGSession.
Sample code is written below.
To destroy the current ARGSession, use the destroy function.
Sample code is written as follows.