Package org.gnome.adw
Interface NavigationView.GetNextPageCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
NavigationView
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface NavigationView.GetNextPageCallback
extends FunctionPointer
Functional interface declaration of the
GetNextPageCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun()
Emitted when a push shortcut or a gesture is triggered.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default MemorySegment
upcall
(MemorySegment sourceNavigationView) Theupcall
method is called from native code.
-
Method Details
-
run
NavigationPage run()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
NavigationView::pushed
handler. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun()
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-