Home Reference Source Repository

js/SceneKit/SCNSceneSourceStatusHandler.js

  1. 'use strict'
  2.  
  3. //import SCNSceneSourceStatus from './SCNSceneSourceStatus'
  4.  
  5. /**
  6. * The signature for the block that SceneKit calls periodically to report progress while loading a scene.
  7. * @type {function(totalProgress: number, status: SCNSceneSourceStatus, error: ?Error, stopLoading: UnsafeMutablePointer<ObjCBool>): void}
  8. * @param {number} totalProgress - A floating-point number between 0.0 and 1.0 indicating the overall progress of loading the scene. A value of 0.0 indicates that the loading process has just begun, and a value of 1.0 indicates that the process has completed.
  9. * @param {SCNSceneSourceStatus} status - A constant identifying one of the distinct phases of SceneKit’s loading procedure. See SCNSceneSourceStatus for possible values.
  10. * @param {?Error} error - An error object describing any error that has occurred during scene loading, or nil if no errors has been encountered.
  11. * @param {UnsafeMutablePointer<ObjCBool>} stopLoading - A reference to a Boolean value. Set *stop to true within the block to abort further processing of the scene source’s contents.
  12. * @returns {void}
  13. * @see https://developer.apple.com/documentation/scenekit/scnscenesourcestatushandler
  14. */
  15. const SCNSceneSourceStatusHandler = (totalProgress, status, error, stopLoading) => {}
  16.  
  17. export default SCNSceneSourceStatusHandler