React SDKAPI ReferenceInterfaces
ProtectionCallbacks
Callbacks fired during protection processing.
Properties
onError?
optional onError?: (id, error) => void;Called when protection of a blob fails.
Parameters
| Parameter | Type |
|---|---|
id | string |
error | string |
Returns
void
onProtected?
optional onProtected?: (id, protectedBlob) => void;Called when a blob has been successfully sealed.
Parameters
| Parameter | Type |
|---|---|
id | string |
protectedBlob | Blob |
Returns
void
onStatusChange?
optional onStatusChange?: (id, status) => void;Called whenever any item's status changes (pending → processing → completed/failed).
Parameters
| Parameter | Type |
|---|---|
id | string |
status | ProtectionStatus |
Returns
void