Phone API Reference - Extended - app.init
Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70
app.init
Description
Initializes the app object. Important: this should be done immediately after including the app library for consistent results.Â
Basic Example:Â
app.init([parameters]); |
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
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. |