updateSettings
Description​
Applies any changes that were done to the settings object. It also 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.
- JavaScript
- C#
- Kotlin
updateSettings(): void
void UpdateSettings()
fun updateSettings(): Unit
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.settings.display.scale = 2.0;
api.updateSettings();
api.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()