Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Phone API Reference - Extended - app.init

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.

  • No labels