Package org.gnome.webkit
Interface BackForwardList.ChangedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
BackForwardList
- 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 BackForwardList.ChangedCallback
extends FunctionPointer
Functional interface declaration of the
ChangedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(@Nullable BackForwardListItem itemAdded, @Nullable MemorySegment itemsRemoved) This signal is emitted whenbackForwardList
changes.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceBackForwardList, MemorySegment itemAdded, MemorySegment itemsRemoved) Theupcall
method is called from native code.
-
Method Details
-
run
void run(@Nullable @Nullable BackForwardListItem itemAdded, @Nullable @Nullable MemorySegment itemsRemoved) This signal is emitted whenbackForwardList
changes. This happens when the current item is updated, a new item is added or one or more items are removed. Note that bothitemAdded
anditemsRemoved
cannull
when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached. -
upcall
default void upcall(MemorySegment sourceBackForwardList, MemorySegment itemAdded, MemorySegment itemsRemoved) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.BackForwardListItem, java.lang.foreign.MemorySegment)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, 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
-