Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

app.init

Description

Initializes the app object. Important: this should be done immediately after including the app library for consistent results. 


Basic Example: 
Code Block
languagejs
app.init([parameters]);

Parameters

 

NameRequiredTypeDefaultDescription
onError
No
function
 

Overloads if your application wants to handle error specifically.

defaultLangLocale
No
string
 

Indicates the language file to use if the app does not have a language file for the phone's chosen language. For example, if the chosen language/locale is fr_fr, but the app does not include the file strings.fr_fr.js, then the app uses the default language file as indicated with this parameter. If no value has been defined, the phone tries to use en_us.