destroy
Description​
Destroys the alphaTab control and restores the initial state of the UI. This function destroys the alphaTab control and tries to restore the initial state of the UI. This might be useful if our website is quite dynamic and you need to uninitialize alphaTab from an element again. After destroying alphaTab it cannot be used anymore. Any further usage leads to unexpected behavior.
- JavaScript
- C#
- Kotlin
destroy(): void
void Destroy()
fun destroy(): Unit
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.destroy();
var api = new AlphaTabApi<MyControl>(...);
api.Destroy();
val api = AlphaTabApi<MyControl>(...)
api.destroy()