Constructor
new SystemController()
- Since:
- 11.7.0
Methods
(static) addEventHandler(eventName, handler)
Add handler function for System Controller's event.
Parameters:
Name | Type | Description |
---|---|---|
eventName |
String | Name of the event. |
handler |
function | Function that will be called when event is fired. |
- Since:
- 11.7.0
(static) getCapabilities() → {SystemControllerCapabilities}
Retrieve CWIC capability list.
- Since:
- 11.7.0
Returns:
.
(static) getInstanceID() → {String}
Retrieve unique instance ID of CWIC library.
- Since:
- 11.7.0
Returns:
Unique instance id.
- Type
- String
(static) getVersion() → {String}
Retrieve CWIC library version.
- Since:
- 11.7.0
Returns:
.
- Type
- String
(static) initialize()
Initializes CWIC library. Initializes NPAPI Plugin (Internet Explorer, Safara, Mozzila Firefox) or Chrome Plugin
(Google Chrome). In order to use any other API call from library CWIC needs to be initialized first.
- Since:
- 11.7.0
(static) removeEventHandler(eventName)
Remove handler function for System Controller's event.
Parameters:
Name | Type | Description |
---|---|---|
eventName |
String | Name of the event. |
- Since:
- 11.7.0
(static) setLoggingLevel(level)
Set new logging level. Possible Values:
- 0 - Debug, this logging level is used for debugging purposes of JSDK team.
- 1 - Info, default value for log level. Logs main CWIC events.
- 2 - Warning, logs errors that are not critical (the ones that could be expected of improper use of API)
- 3 - Error, logs critical errors
Parameters:
Name | Type | Description |
---|---|---|
level |
Number | Logging level that will be set. |
- Since:
- 11.7.0
Events
onAddonConnectionLost
This event is fired connection with add-on has been lost.
- Since:
- 11.7.0
onInitializationError
This event is fired CWIC initialization fails.
Parameters:
Name | Type | Description |
---|---|---|
error |
Object | Initialization Error. |
- Since:
- 11.7.0
onInitialized
This event is fired when CWIC has been initialized successfully.
- Since:
- 11.7.0
onUserAuthorizationRejected
This event is fired when user presses deny button on ACD (Access Control Dialogue).
- Since:
- 11.7.0
onUserAuthorized
This event is fired when user presses accept button on ACD (Access Control Dialogue).
- Since:
- 11.7.0