我在Xamarin.Forms(PCL)中編程,並且我看過很多帖子,但沒有人爲我工作。我使用該插件PhoneCall.Forms.Plugin 我做了一個包含下面的代碼Xamarin.Forms(PCL)項目中的NotlmplementedException
try
{
var PhoneCallTask = CrossMessaging.Current.PhoneDialer;
if (PhoneCallTask.CanMakePhoneCall)
{
PhoneCallTask.MakePhoneCall("+528331607211", "Laura");
}
else
{
DisplayAlert("Llamada", "No se puede hacer llamada", "Ok");
}
}
它拋出一個錯誤一個按鈕來調用一個方法:
System.NotlmplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
您必須將軟件包與PCL項目一起安裝到應用程序(iOS/Android)項目中。 – SushiHangover
兩個項目都安裝了相同的軟件包 –
您可以添加一個鏈接到您正在使用的插件嗎? – cvanbeek