I am developing a application in which I need to provide navigate to backward screen programmatically, in which there are two scenarios: