Type Alias

SCNSceneExportProgressHandler

The signature for the block that SceneKit calls during scene export.

Declaration

typedef void (^SCNSceneExportProgressHandler)(float totalProgress, NSError *error, BOOL *stop);

Discussion

You specify a block with this signature when calling the writeToURL:options:delegate:progressHandler: method in order to receive updates on the progress of the export operation. The block takes the following parameters:

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.

error

An error encountered during the export process, or nil if no errors have occurred.

stop

Set *stop to YES inside the block to cancel export.