Package org.webkitgtk
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 TypeMethodDescriptionvoidrun(@Nullable BackForwardListItem itemAdded, @Nullable MemorySegment itemsRemoved) This signal is emitted whenbackForwardListchanges.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceBackForwardList, MemorySegment itemAdded, MemorySegment itemsRemoved) Theupcallmethod is called from native code.
-
Method Details
-
run
This signal is emitted whenbackForwardListchanges. This happens when the current item is updated, a new item is added or one or more items are removed. Note that bothitemAddedanditemsRemovedcannullwhen 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) Theupcallmethod is called from native code. The parameters are marshaled andrun(org.webkitgtk.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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-