[NUI] Add OnBackNavigation to Navigator
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 25 Nov 2022 08:18:16 +0000 (17:18 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Fri, 10 Mar 2023 07:00:48 +0000 (16:00 +0900)
commit24933d7f009ed3b526f1f6987ea0fdfc3621a3aa
tree88419930efd8c5ccefc9f48931799cb27a2302b1
parent854e902c42ff272821393397b693307969cbf3b9
[NUI] Add OnBackNavigation to Navigator

To enable customization of back navigation, OnBackNavigation is added
to Navigator.
e.g.
class CustomNavigator : Navigator
{
    protected override OnBackNavigation(BackNavigationEventArgs args)
    {
        // Do something when back navigation is started.
        ...

        // To pop the peek page, call base.OnBackNavigation().
        // Otherwise, do not call base.OnBackNavigation().
        base.OnBackNavigation(args);
    }
}
src/Tizen.NUI.Components/Controls/Navigation/AppBar.cs
src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs