- Source:
Methods
(static) closePopup()
Utility method to close the popup UI element. Developer can use this method to close the UI which is on top of the stack.
- Source:
(static) getPopUpStyle() → {string}
Utility method to get the popup style for a UI.
- Source:
Returns:
The popup style. See MASPopupStyle
- Type
- string
(static) isEmpty(val)
Utility Method to validates the passed-in object for null/empty or undefined state. The type of object can be anything i.e. object, string, null etc.
Parameters:
Name | Type | Description |
---|---|---|
val |
* | Object to be validated |
- Source:
(static) MASPopupUI(url, result, popupafterclose, onload)
Utility Method to popup a UI from a local HTML resource
Parameters:
Name | Type | Description |
---|---|---|
url |
string | path/name to the local HTML page |
result |
object | An object which the native Mobile SDK returns, loaded with data related to Authentication or OTP details. |
popupafterclose |
function | A user defined function that would be called after the popup closes.Any cleaning to be done post closure. |
onload |
function | A user defined function that would be called when the popup UI loads. Any initialization can be done here. |
- Source:
(static) setPopUpStyle(style)
Utility method to set the popup style of the UI that the MAS PLugin loads in case of Authentication/OTP-Channel Selection/OTP verification etc.
Parameters:
Name | Type | Description |
---|---|---|
style |
string | The style string. See MASPopupStyle |
- Source: