getTrainedSignatureActions
Last updated
Last updated
This method returns the list of the trained actions of a profile. For each action, you also see how many times the user trained this action.
You must set one of these 2 parameters: profile or session. Read this for details.
If you set the session, then this method reads information from the profile that is currently loaded for the headset of this session.
If you set profile then this method reads information from the hard drive. The values you get can be different from reading from the session, especially if the profile was load, edited, and not saved yet.
The result is an object containing these fields:
The objects in trainedActions have 2 fields:
Name
Type
Required
Description
cortexToken
string
yes
A token returned by authorize.
detection
string
yes
Must be "mentalCommand" or "facialExpression".
profile
string
no
The name of a profile.
session
string
no
A session id returned by createSession.
Name
Type
Description
trainedActions
array of objects
Contains 1 object for each trained action.
totalTimesTraining
number
The total number of training the user did since the creation of this profile.
Name
Type
Description
action
string
The name of the action.
times
number
How many times the user trained this action.