• key – ???
See also:
• WL.Client.getUserPref(key)
• WL.Client.setUserPref(key, value, options)
• WL.Client.setUserPrefs(prefs, options)
WL.Client.init(options)
Initialize the Worklight client environment. This method should be called before any other
WL.Client function. It is commonly called in the "initOptions.js" JavaScript file.
• options – The options defining the initialization of the WL.Client environment
◦ timeout – The timeout in milliseconds for all calls to the Worklight server. If not
supplied, a timeout of 30 seconds is used.
◦ enableLogger – Controls whether or not WL.Logger.debug() output will be
logged. Settings this to "true" (default) causes debug output to appear in the appropriate
log.
◦ messages – A dictionary object for localizing message text.
◦ authenticator – An object that implements the Authenticator API.
◦ heartBeatIntervalInSecs – How often the client and the Worklight server
should initiate a heardbeat request. The default is seven minutes. See also:
WL.Client.setHeartBeatInterval(interval)
◦ connectOnStartup – Should the client application connect to the Worklight server
at startup? The default is "false".
◦ onConnectionFailure – A callback function called if the client fails to connect to
the Worklight server on startup.
◦ onUsupportedVersion – A callback function called if the client version is no
longer supported.
◦ onRequestTimeout
◦ onUnsupportedBrowser
◦ onDisabledCookies
◦ onUserInstanceAccessViolation
◦ onErrorRemoteDisableDenial
◦ onErrorAppVersionAccessDenial
◦ validateArugments – A flag controlling whether or not the client library should validate
the number and types of parameters passed. The default is "true".
◦ updateSilently
◦ onGetCustomDevicePorivisioingProperties
Page 106
Kommentare zu diesen Handbüchern