我有一个要求,我需要导航到在我的 PCL 应用程序的核心项目中创建的另一个活动或页面。我检查的所有样本都将我带到使用 URI 的网站。我应该在下面的代码中进行哪些更改,以便在单击 pin 时导航到应用程序中的不同页面?
public class CustomMapRenderer : MapRenderer, GoogleMap.IInfoWindowAdapter
{
...
void OnInfoWindowClick(object sender, GoogleMap.InfoWindowClickEventArgs e)
{
var url = Android.Net.Uri.Parse(customPin.Url);
var intent = new Intent(Intent.ActionView, url);
intent.AddFlags(ActivityFlags.NewTask);
Android.App.Application.Context.StartActivity(intent);
}
}