Register a listener function that will be passed a progress event when an attachment for an item in the pending queue is being processed.
const listener = async ({ progress }) => { // update the UI to reflect the progress here...}const deregister = await submissionService.registerPendingQueueAttachmentProgressListener( attachment.id, listener, )// When no longer needed, remember to deregister the listenerderegister() Copy
const listener = async ({ progress }) => { // update the UI to reflect the progress here...}const deregister = await submissionService.registerPendingQueueAttachmentProgressListener( attachment.id, listener, )// When no longer needed, remember to deregister the listenerderegister()
Register a listener function that will be passed a progress event when an attachment for an item in the pending queue is being processed.
Example