-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
Loved this manager.
First: https://www.nuget.org/packages/CHD.HWBackButtonManager
The github link on the page above have a typo on the end of the link...
Now the question:
It worked with the backbutton but how can I made the back button on the master detail menu trigger the same methods?
` protected override void OnAppearing()
{
base.OnAppearing();
bool OnBackButtonPressed()
{
ConfirmLeave();
return false; //false ignore backbutton
}
HWBackButtonManager.OnBackButtonPressedDelegate onBackButtonPressedDelegate = new HWBackButtonManager.OnBackButtonPressedDelegate(OnBackButtonPressed);
HWBackButtonManager.Instance.SetHWBackButtonListener(onBackButtonPressedDelegate);
}
private async void ConfirmLeave()
{
var rslt = await DisplayAlert(":o",
"Are you sure?",
"Yep", "Nop");
if (rslt)
{
await Navigation.PopAsync();
}
}`
Thanks by advance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels