getTrainedSignatureActions
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.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
detection |
| yes | Must be "mentalCommand" or "facialExpression". |
profile |
| no | The name of a profile. |
session |
| no | A session id returned by createSession. |
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.
Result
The result is an object containing these fields:
Name | Type | Description |
trainedActions |
| Contains 1 object for each trained action. |
totalTimesTraining |
| The total number of training the user did since the creation of this profile. |
The objects in trainedActions have 2 fields:
Name | Type | Description |
action |
| The name of the action. |
times |
| How many times the user trained this action. |
Examples
Last updated