SwitchToView in callback

Former Member
Former Member
Is there any limitation of where we can call switchToView? Can I call it from a callback after some asynchronous event? If not how can I post its execution to main thread or it has to be initiated by user interaction?