Home Reference Source Repository

js/SceneKit/SCNSceneExportProgressHandler.js

  1. 'use strict'
  2.  
  3.  
  4. /**
  5. * The signature for the block that SceneKit calls during scene export.
  6. * @type {function(totalProgress: number, error: ?Error, stop: UnsafeMutablePointer<ObjCBool>): void}
  7. * @param {number} totalProgress - A number between 0.0 and 1.0 that indicates the progress of the export operation, with 0.0 indicating that the operation has just begun and 1.0 indicating the operation has completed.
  8. * @param {?Error} error - An error encountered during the export process, or nil if no errors have occurred.
  9. * @param {UnsafeMutablePointer<ObjCBool>} stop - Set *stop to true inside the block to cancel export.
  10. * @returns {void}
  11. * @desc stopSet *stop to true inside the block to cancel export.
  12. * @see https://developer.apple.com/documentation/scenekit/scnsceneexportprogresshandler
  13. */
  14. const SCNSceneExportProgressHandler = (totalProgress, error, stop) => {}
  15.  
  16. export default SCNSceneExportProgressHandler