SDK - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

This widget exports JavaScript functions aimed at helping integrators to realize custom configurations.

It has neither display nor configuration. It must be used by developers only.

SDK functions are accessible in the AFSWidget.sdk variable. They are grouped in several packages.

To add this Widget:

<div class="AFSWidget" title="SDK">
</div>

SDK - This widget exports JavaScript functions aimed at helping integrators to realize custom configurations.

Parameter

Type

Card

Default

Description

appReadyCallback

String

Optional

N/A

A callback to be notified when the AFS Widgets application is ready.

Example:

<div class="AFSWidget" title="SDK">
<script type="application/json">
{
"appReadyCallback": "onAppReady"
}
</script>
</div>

<script type="text/javascript">
window['whenAFSWidgetsReady'] = function()
{
// integration stuffs
}
</script>

The name entered for the "appReadyCallback" function is arbitrary.