Cortex Library for Mobile
  • Getting Started
  • Objective-C API for iOS
    • CortexLib class
    • CortexClient class
    • CortexClientDelegate protocol
  • Java API for Android
    • EmotivLibraryLoader class
    • CortexLib class
    • CortexClient class
  • Additional JSON methods
    • loginWithAuthenticationCode
    • logout
    • queryVirtualHeadsets
    • createVirtualHeadset
    • deleteVirtualHeadset
    • updateVirtualHeadset
    • triggerVirtualHeadsetEvent
    • Virtual headset object
    • freeUpRecords
  • Release Notes
Powered by GitBook
On this page
  • Parameters
  • Result
  • Example
  1. Additional JSON methods

freeUpRecords

This method is to ask Cortex to delete some records, to free up some space on the local hard drive. The records are not delete from the Emotiv cloud.

Parameters

Name

Type

Required

Description

cortexToken

string

yes

records

array of strings

yes

A list of record IDs.

Result

The result is an object with these fields:

Name

Type

Description

failure

array of objects

List of the records that Cortex failed to free up.

success

array of objects

List of the records that Cortex successfully freed up.

The failure objects include these fields:

Name

Type

Description

code

number

The error code.

message

string

The error message.

recordId

string

The id of the record that Cortex failed to free up.

The success objects include these fields:

Name

Type

Description

recordId

string

The id of the record that Cortex successfully freed up.

Example

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "freeUpRecords",
  "params": {
    "cortexToken": "xxx",
    "records": ["foo", "e4b40b0d-99e0-4f43-98ad-8296b125e495"]
  }
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "failure": [{
      "code": -32113,
      "message": "Invalid Record ID.",
      "recordId": "foo"
    }],
    "success": [{
      "recordId": "e4b40b0d-99e0-4f43-98ad-8296b125e495"
    }]
  }
}
PreviousVirtual headset objectNextRelease Notes

Last updated 3 years ago

A token returned by

authorize