如何在 MvvmCross 中为 编写等效代码
if (context instanceof Activity) {
// handle activity case
}
我使用的解决方案:
if (context.GetType() == typeof(SplashView)) {
// handle activity case
}
context
是context
参考SplashView
是Activity
名称