Page navigation tracker manages navigation requests in scene tree. More...
#include <kanzi/node/page_navigation_tracker.hpp>
Public Member Functions | |
PageNavigationTracker () | |
Constructor. More... | |
bool | navigateTo (Page *page, bool immediate) |
Requests navigation to given page. More... | |
void | attach (Page *page) |
Attaches this navigation tracker to given page. More... | |
void | detach (Page *page) |
Detaches this navigation tracker from given page. More... | |
bool | isTransitionInProgress () const |
Checks whether there's navigation ongoing. More... | |
Page navigation tracker manages navigation requests in scene tree.
|
explicit |
Constructor.
bool kanzi::PageNavigationTracker::navigateTo | ( | Page * | page, |
bool | immediate | ||
) |
Requests navigation to given page.
page | The page being navigated in to. |
immediate | If true, plays transitions. Otherwise skips them and navigation is completed after the call returns. |
void kanzi::PageNavigationTracker::attach | ( | Page * | page | ) |
Attaches this navigation tracker to given page.
Navigation tracker starts to manage navigation requests for the sub-tree.
page | The page being attached in to. |
void kanzi::PageNavigationTracker::detach | ( | Page * | page | ) |
Detaches this navigation tracker from given page.
Navigation tracker will no-longer operate.
page | The page being detached from. |
bool kanzi::PageNavigationTracker::isTransitionInProgress | ( | ) | const |
Checks whether there's navigation ongoing.