NavigationView.connectGetNextPage

Connect to GetNextPage signal.

Emitted when a push shortcut or a gesture is triggered.

To support the push shortcuts and gestures, the application is expected to return the page to push in the handler.

This signal can be emitted multiple times for the gestures, for example when the gesture is cancelled by the user. As such, the application must not make any irreversible changes in the handler, such as removing the page from a forward stack.

Instead, it should be done in the signalNavigationView::pushed handler.

class NavigationView
ulong
connectGetNextPage
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 2
)

Parameters

callback T

signal callback delegate or function to connect

adw.navigation_page.NavigationPage callback(adw.navigation_view.NavigationView navigationView)

navigationView the instance the signal is connected to (optional)

Returns the page to push

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID