Difference between revisions of "PEC-Developer/Current/SCAPI/SystemNamespace"
From Genesys Documentation
(Published) |
(Published) |
||
Line 14: | Line 14: | ||
*{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=getAllowedServices|display text=getAllowedServices}} | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=getAllowedServices|display text=getAllowedServices}} | ||
*{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=triggerActivity|display text=triggerActivity}} | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=triggerActivity|display text=triggerActivity}} | ||
− | |||
*{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=popupToast|display text=popupToast}} | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=popupToast|display text=popupToast}} | ||
*{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=updateToast|display text=updateToast}} | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=updateToast|display text=updateToast}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=closeToast|display text=closeToast}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=isFrameLeading|display text=isFrameLeading}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=isFrameFollowing|display text=isFrameFollowing}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=isFrameNegotiating|display text=isFrameNegotiating}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=isFrameLeadingOrNegotiating|display text=isFrameLeadingOrNegotiating}} | ||
+ | *{{Link-SomewhereInThisManual|topic=SystemNamespace|anchor=isLastActiveFrame|display text=isLastActiveFrame}} | ||
===getAllowedServices=== | ===getAllowedServices=== | ||
Line 182: | Line 187: | ||
!Returns | !Returns | ||
{{!}}<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. | ||
+ | {{!}}} | ||
+ | |||
+ | ===isFrameLeading=== | ||
+ | |||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> isFrameLeading(succeeded, failed) → {boolean} | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Find out if the browser tab is leading. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation succeeded. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation failed. | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | !Returns | ||
+ | {{!}}<tt>true</tt> if the browser tab is the leader. | ||
+ | {{!}}} | ||
+ | |||
+ | ===isFrameFollowing=== | ||
+ | |||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> isFrameFollowing(succeeded, failed) → {boolean} | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Find out if the browser tab is following. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation succeeded. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation failed. | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | !Returns | ||
+ | {{!}}<tt>true</tt> if this browser tab is following. | ||
+ | {{!}}} | ||
+ | |||
+ | ===isFrameNegotiating=== | ||
+ | |||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> isFrameNegotiating(succeeded, failed) → {boolean} | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Find out if there is an election in progress and the browser tab state is not yet set to leading or following (the tab is "negotiating.") | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation succeeded. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation failed. | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | !Returns | ||
+ | {{!}}<tt>true</tt> if the tab is negotiating. | ||
+ | {{!}}} | ||
+ | |||
+ | ===isFrameLeadingOrNegotiating=== | ||
+ | |||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> isFrameLeadingOrNegotiating(succeeded, failed) → {boolean} | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Find out if the browser tab is leading or there is an election in progress and the tab state is not yet set to leading or following (the tab is "negotiating."). | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation succeeded. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation failed. | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | !Returns | ||
+ | {{!}}<tt>true</tt> if the browser tab is leading or negotiating. | ||
+ | {{!}}} | ||
+ | |||
+ | ===isLastActiveFrame=== | ||
+ | |||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> isLastActiveFrame(succeeded, failed) → {boolean} | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Find out if this is the last active browser tab. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation succeeded. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}string | ||
+ | {{!}}The callback function to use if the operation failed. | ||
+ | {{!}}} | ||
+ | {{!}}- | ||
+ | !Returns | ||
+ | {{!}}<tt>true</tt> if this is the last active browser tab. | ||
{{!}}} | {{!}}} | ||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 17:16, July 22, 2021
Contents
Learn about the System namespace methods in the Service Client API.
Methods
The System namespace includes the following methods:
- getAllowedServices
- triggerActivity
- popupToast
- updateToast
- closeToast
- isFrameLeading
- isFrameFollowing
- isFrameNegotiating
- isFrameLeadingOrNegotiating
- isLastActiveFrame
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. |
isFrameLeading
Signature | <static> isFrameLeading(succeeded, failed) → {boolean} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Find out if the browser tab is leading. | |||||||||
Parameters |
| |||||||||
Returns | true if the browser tab is the leader. |
isFrameFollowing
Signature | <static> isFrameFollowing(succeeded, failed) → {boolean} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Find out if the browser tab is following. | |||||||||
Parameters |
| |||||||||
Returns | true if this browser tab is following. |
isFrameNegotiating
Signature | <static> isFrameNegotiating(succeeded, failed) → {boolean} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Find out if there is an election in progress and the browser tab state is not yet set to leading or following (the tab is "negotiating.") | |||||||||
Parameters |
| |||||||||
Returns | true if the tab is negotiating. |
isFrameLeadingOrNegotiating
Signature | <static> isFrameLeadingOrNegotiating(succeeded, failed) → {boolean} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Find out if the browser tab is leading or there is an election in progress and the tab state is not yet set to leading or following (the tab is "negotiating."). | |||||||||
Parameters |
| |||||||||
Returns | true if the browser tab is leading or negotiating. |
isLastActiveFrame
Signature | <static> isLastActiveFrame(succeeded, failed) → {boolean} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Find out if this is the last active browser tab. | |||||||||
Parameters |
| |||||||||
Returns | true if this is the last active browser tab. |
Comments or questions about this documentation? Contact us for support!