TideSDK Ti.App restart()

i cant figure out how o use the tidesdk api. It says on there documentation to use Ti.App and the restart() function but i tried a couple ways with no luck and also tried to imitate how the ti.media.sound is scripted which i have working but i cant figure out the app restart. Thak you in advance.

I have tried multiple variations of making functions and directly using onclick.

<script>
function restart(){
    var restart = Ti.App.restart();

}

</script>

onClick="restart()"
onClick="restart(Ti.App.restart())"

Heres the documenttion by the way

http://tidesdk.multipart.net/docs/user-dev/generated/#!/api/Ti.App


Source: javascript

Leave a Reply