Error and Ended
This page details the following functions:
- sessionError
- sessionEnded
- handleError
sessionError
Platforms - all supported platforms
Triggered by Personetics widget in case of widget error. Personetics provides a default message response to the error. Alternatively, the customer can decide on the message or dialog (if any) to display.
Return value - None
Web Params
Name | Type | Mandatory | Description |
---|---|---|---|
errorInfo | Map | No | Error information in key/value fashion including errorCode and errorMessage |
Mobile Params
iOS Swift, Android, React Native
Name | Type | Mandatory | Description |
---|---|---|---|
errorInfo | Map | No | Error information in key/value fashion including errorCode and errorMessage |
Flutter Params
Name | Type | Mandatory | Description |
---|---|---|---|
context | BuildContext | Yes | The build context of the webView widget. |
requestBodyParams | Map<String, dynamic> | Yes | Request body to be sent to Personetics server |
sessionEnded
Platforms:all supported platforms
Optionally allows the bank to close the window. For example - may can relevant for Personetics’ widgets with a designed “Close” button controlled by Personetics UI. Session ended will be triggered once the end-user clicks the close button.
Return value - None
Web Params
Default behavior: The bank should close the controller\View*
Name | Type | Mandatory | Description |
---|---|---|---|
sessionInfo | Map | No | Session information |
Mobile Params
iOS Swift, Android, React Native
Default behavior: The bank should close the controller\View*
Name | Type | Mandatory | Description |
---|---|---|---|
sessionInfo | Map | No | Session information |
Flutter Params
Default behavior: The bank should close the widget.
Name | Type | Mandatory | Description |
---|---|---|---|
context | BuildContext | Yes | The build context of the webView widget. |
requestBodyParams | Map<String, dynamic> | Yes | Request body to be sent to Personetics server |
handleError
Platforms:All supported platforms.
Will be triggered by bank application if there is an application error.
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
errorInfo | Map | No | Error information in key/value fashion including errorCode and errorMessage |
Return value
None
Updated 11 months ago