Difference between revisions of "PEC-Developer/Current/SCAPI/SystemNamespace"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 6: | Line 6: | ||
|ComingSoon=No | |ComingSoon=No | ||
|Platform=GenesysEngage-cloud | |Platform=GenesysEngage-cloud | ||
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Methods | |sectionHeading=Methods | ||
|anchor=Methods | |anchor=Methods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The System namespace includes the following methods: | |structuredtext=The System namespace includes the following methods: | ||
Line 80: | Line 77: | ||
{{!}}buttons | {{!}}buttons | ||
{{!}}Array.<string> | {{!}}Array.<string> | ||
− | {{!}}Optional. Each character string in this array becomes a button. | + | {{!}}Optional. Each character string in this array becomes a button. All buttons are displayed as buttons, not hyperlinks, in the following order: [Button 2] [Button 3] ... [Button N] [Button 1]. |
{{!}}- | {{!}}- | ||
{{!}}buttonShowDismiss | {{!}}buttonShowDismiss | ||
Line 142: | Line 139: | ||
{{!}}message | {{!}}message | ||
{{!}}string | {{!}}string | ||
− | {{!}}Optional. The | + | {{!}}Optional. The message. |
{{!}}- | {{!}}- | ||
{{!}}keyValues | {{!}}keyValues | ||
Line 150: | Line 147: | ||
{{!}}buttons | {{!}}buttons | ||
{{!}}Array.<string> | {{!}}Array.<string> | ||
− | {{!}}Each character string in this array becomes a button. | + | {{!}}Each character string in this array becomes a button. All buttons are displayed as buttons, not hyperlinks, in the following order: [Button 2] [Button 3] ... [Button N] [Button 1]. |
{{!}}- | {{!}}- | ||
{{!}}buttonShowDismiss | {{!}}buttonShowDismiss | ||
Line 186: | Line 183: | ||
{{!}}<tt>true</tt> if the toast has been updated; <tt>false</tt> if the toast identifier has not been found. | {{!}}<tt>true</tt> if the toast has been updated; <tt>false</tt> if the toast identifier has not been found. | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 16:47, September 9, 2020
Contents
Learn about the System namespace methods in the Service Client API.
Methods
The System namespace includes the following methods:
getAllowedServices
Signature | <static> getAllowedServices() → {Array.<string>} |
---|---|
Description | Gets the list of allowed services, as determined by the security configuration for Agent Desktop. If the domain of the web application that calls this method isn't listed in the service-client-api.accepted-web-content-origins option, then this method fails. Contact your Genesys representative for details about this configuration. |
Returns | Array.<string> |
triggerActivity
Signature | <static> triggerActivity() |
---|---|
Description | Triggers a fake activity to prevent the inactivity timer from closing the agent session. |
popupToast
Signature | <static> popupToast(parameters) → {string} | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Pops up a new custom toast. | ||||||||||||||||||||||||||||||
Parameters |
| ||||||||||||||||||||||||||||||
Returns | A unique identifier |
updateToast
Signature | <static> updateToast(id, parameters) → {boolean} | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Updates the specified toast. | |||||||||||||||||||||||||||||||||
Parameters |
| |||||||||||||||||||||||||||||||||
Returns | true if the toast has been updated; false if the toast identifier has not been found. |
closeToast
Signature | <static> closeToast(id) → {boolean} | ||||||
---|---|---|---|---|---|---|---|
Description | Closes the specified toast. | ||||||
Parameters |
| ||||||
Returns | true if the toast has been updated; false if the toast identifier has not been found. |
Comments or questions about this documentation? Contact us for support!