I know I can add context menu items this way to the Xamarin.Forms custom renderer:
public class MyRenderer: WebViewRenderer
{
protected override void OnCreateContextMenu (Android.Views.IContextMenu menu)
{
base.OnCreateContextMenu (menu);
menu.Add (Resource.String.teststring);
}
}
Now, where do I specify the action for selecting that item I've added?
The solution is to use SetOnMenuItemClickListener on the item that's been added. You can set the handler as the renderer and implement the handling method: