Class: Application

Application

new Application(options, callbackopt, errorCallbackopt)

Creates a new Application.

An object representing an application. Allows the developer to create, execute, show/close an application as well as listen to application events.

Parameters:
Name Type Attributes Description
options Object

See the tutorial

callback function <optional>

Callback on success

errorCallback function <optional>

Callback on error

Tutorials:

Members

(inner) constructorError :Object

Type:
  • Object
Properties:
Name Type Description
networkErrorCode number

The network error code from Chrome

stack string

Callstack for the error

message string

The message string from the error

(inner) constructorSuccess :Object

Type:
  • Object
Properties:
Name Type Description
httpResponseCode number

HTTP response code

Type Definitions

errorCallback(reason, errorObj)

Called if there was an error during application creation

Parameters:
Name Type Description
reason string

The reason of the error

errorObj fin.desktop.Application~constructorError

See constructorError

successCallback(successObj)

Called if the application creation was successful

Parameters:
Name Type Description
successObj fin.desktop.Application~constructorSuccess

See constructorSuccess