So I'm trying to find a way of implementing OnBackPressed within a fragment but having no luck. I've tried using keylisteners but they dont seem to work, and inside the fragment I try using
public override void OnBackPressed() but keeps coming up saying "No suitable method found to override". I have the OnBackPressed method implemented in my main activity, but need this for a fragment specific interaction.
Any help in trying to fix this is greatly appreciated.