appendSettings
// Types:
type AppendSettingsCallback = (settings: Settings) => Settings | Promise<Settings>;
appendSettings: (append: AppendSettingsCallback) => Promise<void>;
// Example:
window.AE_SDK((thrownError, AE_SDK) => {
AE_SDK.appendSettings(settings => {
settings.expertise = ["special-expertise-example"];
return settings;
});
});
The function gets the current settings state and must return settings object too.
The given callback can be either sync or async.
Settings that affect session creation, such as pool and expertise will only affect the upcoming session.
This means that if a user already has an opened session, the new settings will apply to his next session.
Parameters
Name | Type | Description | Default |
---|---|---|---|
append | function | a function that gets the current Settings, and must return a Settings object |