Event types that can be emitted by BlueInkEmbed.
These can be accessed via the BlueInkEmbed class, e.g. BlueInkEmbed.EVENT.COMPLETE, etc.
Type:
Properties:
Name |
Type |
Default |
Description |
ANY |
string
|
any
|
Any event occurred. Use this if you want to listen for all events with a single callback. |
LOAD |
string
|
load
|
The initial load of the iFrame content is complete. Note, the documents may not yet be ready to sign. |
READY |
string
|
ready
|
The documents are ready to sign. |
COMPLETE |
string
|
complete
|
The signing is complete. |
AUTH_FAIL |
string
|
auth_fail
|
Signer authentication failed. |
AUTH_SUCCESS |
string
|
auth_success
|
Signer authentication succeeded. Note, this event is still fired if no authentication options were selected. |
ERROR |
string
|
error
|
An error that prevents embedded signing from continuing. |
- Source:
-
Examples
embed = new BlueInkEmbed(myPublicAPIKey);
embed.on(BlueInkEmbed.EVENT.COMPLETE, () => {
console.log('signing complete!');
});
embed.on(BlueInkEmbed.EVENT.ERROR, (eventData) => {
console.log('Signing error occurred.');
console.log(eventData.message);
});