我正在运行一些异步任务。
活动被销毁后,使用INavigationService
进行导航是否安全?
我并不完全清楚Prism和Xamarin Forms中引发的内容。
以下是一个例子:
await SomeAsyncTask();
// Suppose at this point, Activity was destroyed
// This means no UI. I'm not sure what's the state of Xamarin.Forms.Application at this point and everything else in Prism
_navigationService.NavigateAsync(...);