Skip to content

Latest commit

 

History

History
151 lines (114 loc) · 4.63 KB

MYPORTAL_README.md

File metadata and controls

151 lines (114 loc) · 4.63 KB

Functions

closeModal()

This function sends to IO App the input to stop the webview communication and close the current screen.

showLoader()

This function sends to IO App the input to show the activity indicator loader.

hideLoader()

This function sends to IO App the input to hide the activity indicator loader.

showSuccess(payload)

A function to show the success component on the IO App side.

showErrorMessage(payload)

A function to send an error message to IO App component

showAlertBox(payload)

A function to show an AlertBox in the IO App component.

checkInjectionCompleted()

This is a utility function to check if the injection is yet completed. This calls onInjectionCompleted function which is implemented by the client and not injected by IO App.

Typedefs

AlertContents : Object

An Object to define the values of Title and description of an alert box.

MessagePayloadS : Object

An object defined for internationalization purpose. The key is the language key and the value is the message text

Accepted keys:

  • it
  • en
MessagePayloadL : Object

An object defined for internationalization purpose. The key is the language key and the value is the payload for alert box

closeModal()

This function sends to IO App the input to stop the webview communication and close the current screen.

Kind: global function

showLoader()

This function sends to IO App the input to show the activity indicator loader.

Kind: global function

hideLoader()

This function sends to IO App the input to hide the activity indicator loader.

Kind: global function

showSuccess(payload)

A function to show the success component on the IO App side.

Kind: global function

Param Type Description
payload MessagePayloadS Will be the message showed in the success screen, otherwise a common text will be displayed

showErrorMessage(payload)

A function to send an error message to IO App component

Kind: global function

Param Type
payload MessagePayloadS

showAlertBox(payload)

A function to show an AlertBox in the IO App component.

Kind: global function

Param Type Description
payload MessagePayloadL the value to display in the alert box.

checkInjectionCompleted()

This is a utility function to check if the injection is yet completed. This calls onInjectionCompleted function which is implemented by the client and not injected by IO App.

Kind: global function

AlertContents : Object

An Object to define the values of Title and description of an alert box.

Kind: global typedef
Properties

Name Type Description
title string The title of the alert box.
description string The main message of the alert box.

MessagePayloadS : Object

An object defined for internationalization purpose. The key is the language key and the value is the message text

Accepted keys:

  • it
  • en

Kind: global typedef
Properties

Name Type Description
it string The message defined in Italian.
en string The message defined in English.

MessagePayloadL : Object

An object defined for internationalization purpose. The key is the language key and the value is the payload for alert box

Kind: global typedef
Properties

Name Type Description
it AlertContent The values of the alert box in Italian language
en AlertContent The values of the alert box in English language