我正在使用Xamarin MessagingCenter实现设备定位检测器。我想要做的是从我的安卓项目中的MainActivity发送消息到我的.NET标准项目中的Singleton类实现。base.OnConfigurationChanged(newConfig);
MessagingCenter.SendOrientation.Landscape));
else if (new
试图通过MessagingCenter发送字符串值时,获取以下异常。例外情况发生在PopupPage上。:94 at Xamarin.Forms.MessagingCenter.InnerSend (System.String message,System.Type senderType,System.TypeargType,System.Object发件人)D:\a\1\s\Xamarin.Forms.Core\MessagingCenter.cs:217 at Xamarin.Forms.MessagingCenter