Utils module
Members
-
staticmodule:utils.extend
-
Extends a child object from a parent object using classical inheritance pattern.
Methods
-
staticcreateUUID()
-
Create a UUID
Returns:
A newly random UUID with the format XXXX-XX-XX-XX-XXXXXX -
staticisMobile(){Boolean}
-
Returns true if this app is executed in a mobile device, either in a native app or in the browser.
Returns:
Type Description Boolean true if this app is executed in a mobile device, either in a native app or in the browser. -
staticisMobileApp(){Boolean}
-
Returns true if this app is executed natively ONLY
Returns:
Type Description Boolean true if this app is executed in a mobile device, either in a native app or in the browser. -
staticloadScript(scriptURL, callback)
-
Loads/injects a script
Name Type Description scriptURLstring Script URL to load
callbackfunction Callback to be executed when the script is loaded