如何在 MvvmCross android xamarin 中检查上下文实例



如何在 MvvmCross 中为 编写等效代码

if (context instanceof Activity) {
// handle activity case
} 

我使用的解决方案:

if (context.GetType() == typeof(SplashView)) {
// handle activity case         
}
  • contextcontext参考
  • SplashViewActivity名称

最新更新