Skip to main content

updateSettings

since 0.9.4

Description​

Applies any changes that were done to the settings object and informs the Renderer about any new values to consider. By default alphaTab will not trigger any re-rendering or settings update just if the settings object itself was changed. This method must be called to trigger an update of the settings in all components. Then a re-rendering can be initiated using the Render() method.

Signatures​

function updateSettings()JavaScript
alphaTab('updateSettings')jQuery
void UpdateSettings().net
fun updateSettings(): UnitAndroid

Parameters​

None

Returns​

Nothing

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.settings.display.scale = 2.0;
api.updateSettings();
api.render();