[TIMOB-11178]Implementation for Autopause API.
[TIMOB-11178]Replacing ENSURE_UI_THREAD with TiThreading
[TIMOB-11178]updating docs.
Merge pull request #3963 from srahim/timob-11178

[TIMOB-11178]Implementation for Autopause API.