This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there any comprehensive reference or guide for the APIs used in the GUI composer? Code such as:
var fileInfo = getFileInfo(); var options = getOptions(); var callback = function ( errorInfo) { showError( errorInfo); }; TI.File.save( graph_data, fileInfo, options, callback);
particularly the last line, isnt exaplained anywhere, and i cant find a reference to the TI api anywhere. Does such a thing exist?
Failing that, is there a version of TI.file.save that appends to a file rather than creating a new one?
Hello Simon,
The APIs you are asking are documented in the JavaScript library that defines them:
$(YOUR_GUI_COMPOSER_INSTALL)\eclipse\plugins\davinci.gc_1_5\WebContent\gc\backplane\guiComposer.js.
Toward the end of the file: line 1547 to 1780.
The answer to your second question you will probably find in the documentation of TI.file.save function:
…
* @param options- see options description in File.
* append : true - to add to the end of the file instead of the beginning.
* addCRBefore : true - if CR should be inserted before data.
* addCRAfter : true - if CR should be inserted after data.
…
There are two examples of how to user the file operations, you may want to look at.
You can see in the second example uses “append” option.
Regards
Dobrin