updateSettings
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​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.settings.display.scale = 2.0;
api.updateSettings();
api.render();
const at = $('#alphaTab');
at.alphaTab('settings').display.scale = 2.0;
at.alphaTab('updateSettings');
at.alphaTab('render');
var api = new AlphaTabApi<MyControl>(...);
api.Settings.Display.Scale = 2.0;
api.UpdateSettings();
api.Render()
val api = AlphaTabApi<MyControl>(...)
api.settings.display.scale = 2.0
api.updateSettings()
api.render()