4. ARGSession
ARGSession maintains the status of your application and manages the life cycle of your application according to the status. It also contains rendered frames.
Last updated
Was this helpful?
ARGSession maintains the status of your application and manages the life cycle of your application according to the status. It also contains rendered frames.
Last updated
Was this helpful?
<ARGear/ARGear.h> should be imported beforehand.
When creating ARGSession, you can pass ARGConfig and ARGInferenceFeature parameters. ARGConfig contains API URL, API key, secret key, and auth key and it must be sent to ARGSession.
You must pass ARGInferenceFeature parameter to ARGSession and the selected feature will be obtained. The configured feature information can be obtained from ARGFrame.
Below is the sample code to create ARGSession.
Unless ARGConfig is properly set during ARGSession creation, the 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.
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.
Create ARGSession with or without an option, ARGInferenceOption. For the details of ARGInferenceOption, please refer to .